[OpenLayers-Trac] [OpenLayers] #1199: if scales is set on the map, you cannot use minScale and maxScale on the layer
OpenLayers
trac at openlayers.org
Fri Dec 7 16:42:06 EST 2007
#1199: if scales is set on the map, you cannot use minScale and maxScale on the
layer
---------------------+------------------------------------------------------
Reporter: bartvde | Owner: euzuro
Type: feature | Status: new
Priority: minor | Milestone:
Component: Layer | Version: 2.5
Keywords: |
---------------------+------------------------------------------------------
The code in initResolutions looks if the map object has a scales array. If
this is the case it will take over the scales array. There is currently no
way to override this, since passing in a null or empty scales array to the
layer won't work.
Since the application of minScale and maxScale only takes place if scales
is null, that piece of code will never be applied to the layer.
Chris Schmidt noted on the users list that he thinks this is a bug, but he
is unsure on how to fix this.
--
Ticket URL: <http://trac.openlayers.org/ticket/1199>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list