[OpenLayers-Dev] addOptions and redraw

Eric Lemoine eric.lemoine at camptocamp.com
Wed Apr 11 09:14:30 EDT 2012


On Wednesday, April 11, 2012, Bart van den Eijnden wrote:

> Another related question to my previous post.
>
> So I've worked around the previous issue by clearing alwaysInRange before
> calling addOptions.
>
> Then when I pass in minScale and maxScale options to addOptions that
> effectively will make the layer be out of scale, nothing happens, even
> after calling redraw.
>
> Am I missing something here? Why is the layer not turned off in this case,
> it only happens if I don't call redraw and manually pan the map.
>



Do you use redraw(true)?

>

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20120411/5edb30b1/attachment.html


More information about the Dev mailing list