Where would be the best place for me to hook some code so as to make the layer not show up in the LayerSwitcher, when it's not being drawn?
Is there an event I could catch, on scale changes, so I could check Layer.inRange, and set Layer. displayInLayerSwitcher? Would zoomend work? Or does it fire too late? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher Schmidt Sent: Monday, March 03, 2008 5:06 PM To: [email protected] Subject: Re: [OpenLayers-Users] layer.maxResolution and LayerSwitcher On Mon, Mar 03, 2008 at 05:02:53PM -0600, Jeff Dege wrote: > I have a layer I'm turning off at certain zoomlevels, by setting > maxResolution and/or minResolution. > > At zoomlelelels where it's not being drawn, it still shows up in the > layerSwitcher, with no title and a disabled checkbox. > > Is this intended behavior? Yep. Regards, -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
