[OpenLayers-Dev] initResolutions issue

Bart van den Eijnden bartvde at opengeo.org
Wed Apr 11 08:33:57 EDT 2012


Hey,

I am trying to set the minScale or maxScale of a layer using addOptions after it has been added to the map and drawn.

However, with the current code of initResolutions, alwaysInRange is not updated unless it's null [1], which is preventing my options to have any effect.

Is this to be expected?

[1] https://github.com/openlayers/openlayers/blob/master/lib/OpenLayers/Layer.js#L861

Best regards,
Bart

-- 
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120411/bb0de436/attachment.html


More information about the Dev mailing list