[OpenLayers-Users] Suppressing layers from being loaded

Leandro R learonco at gmail.com
Wed Oct 31 21:37:27 EDT 2007


Hello!!
Have you tried with minScale and maxScale properties in the layer?

Regards
Leandro


2007/10/31, Jeff Yutzler <jeff.yutzler at ionicenterprise.com>:
>
> I have a Layer that renders feature data from a richly populated
> datastore.  The problem is that at large scale, a Get Image operation is
> expensive but I can't seem to prevent the Get Image operation from
> occurring.  In an attempt to avoid the problem, I set {visibility:
> false} in the options when I instantiate the layer object, but this had
> no effect.  I have confirmed that the parameter has made its way to
> div.style.display = "none".  However, I see that Firefox is still
> attempting to load the image.  This is bad.  (FWIW, this layer extends
> Grid, but this problem would presumably occur on any layer type.)
>
> I have reworked things to not put this particular layer in the map, but
> there are times where it would be nice to be able to do so.  Is there
> any way to reliably suppress a layer from being loaded?
>
> I'm working off of 2.4, but I do not believe anything has changed in
> this area in the meantime.
>
> Thanks.
> -Jeff
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071031/9dd4a2d8/attachment.html


More information about the Users mailing list