[OpenLayers-Users] Suppressing layers from being loaded

Christopher Schmidt crschmidt at metacarta.com
Wed Oct 31 21:44:39 EDT 2007


On Wed, Oct 31, 2007 at 04:55:05PM -0400, Jeff Yutzler wrote:
> 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.)

What happens if you do setVisibility(false); instead of setting the
visibility yourself?

Does it continue to load as you change zooms more than once? 

It's possible this is part of an already-reported bug, or possibly a new
bug report I'm not yet aware of.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list