Why not have a "blank" option that just turns the visibility of all overlays off?
Most of the time I see radio buttons as the way to switch between the base layers and checkboxes to turn on/off overylays (like the LayerSwitcher in OL does by default). Does that scenario not fit will in this case? Wally On Fri, Jan 14, 2011 at 1:13 PM, elshae <[email protected]> wrote: > > > Steve.Toutant wrote: > > > > Is this working for you > > var empty = new OpenLayers.Layer("Empty", {isBaseLayer: true}); > > > > Thanks for the reply Steve! Unfortunately, it isn't working for me..I > cannot use it as a base layer, as I still need my base layers to show.. > > When I try: > //Blank layer > var blank = new OpenLayers.Layer("No Photos", {isBaseLayer: false, > visibility: false, displayInLayerSwitcher: true}); > > I get: > this.layer.map is null > [Break On This Error] this.layer.map.events.on({ > > Any other ideas? > > Thanks! > > elshae > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Add-A-Blank-Overlay-Layer-tp5922699p5922772.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users >
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
