[OpenLayers-Users] Turn off BaseLayer?

Christopher Schmidt crschmidt at metacarta.com
Wed Apr 9 20:46:49 EDT 2008


On Wed, Apr 09, 2008 at 10:54:05PM +0000, djs7743 at att.net wrote:
> Is it possible in OL to turn off the BaseLayer? In other words I'd like all my layers to be overlays. Looking at it another way, this would allow me to turn off all layers and just have a blank map. I'd also like to have the "Base Layer" portion of the LayerSwitcher disappear if all my layers are Overlays.

Nope.

you can use displayInLayerSwitcher as a layer option to turn off the
display of the base layer, and set a non-visible baselayer (like an
instance of the OpenLayers.Layer class) as the baselayer of your map for
a similar effect though.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list