Added layer-data and calculating layer's min- and max-scales now.