[OpenLayers-Users] adding a zoom level to a map?
crschmidt at metacarta.com
Thu Dec 11 09:22:16 EST 2008
On Thu, Dec 11, 2008 at 06:07:53AM -0800, gimini wrote:
> Hi girls and guys,
> I set up first a scales array in my map config (my layer create the right
> amount of scales, i.e the scales array).
> I 'd like to add a specific scale which is not in the array. I use the
> map.zoomToScale(new scale) to refresh the viewing but i cannot insert this
> scale in the array. Trying to retrieve the scale by its (new) zoom level is
> not possible, the map.numZoomLevels remains the same as the map initial
The number of scales/zoom levels on a layer/map is configured at the
time the layer is added to a map. Once this has happened, there is no
easy way to change the list of scales/resolutions that OpenLayers uses
for that layer.
More information about the Users