[OpenLayers-Trac] [OpenLayers] #354: Add Ability to Hide/Show() BaseLayer
OpenLayers
trac at openlayers.org
Mon Jun 4 15:32:17 EDT 2007
#354: Add Ability to Hide/Show() BaseLayer
----------------------+-----------------------------------------------------
Reporter: euzuro | Owner: euzuro
Type: feature | Status: new
Priority: minor | Milestone: 2.6 Release
Component: Layer | Version:
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment (by openlayers):
Possible workaround/solution:
Just add the following layer to your map...
{{{
var lyrBaseClear = new OpenLayers.Layer.Image(
"None",
'/path/to/clear.gif',
new OpenLayers.Bounds(-180,-90,180,90),
new OpenLayers.Size(8, 8),
{isBaseLayer: true}
);
}}}
...where clear.gif is an 8 x 8 pixel transparent gif. You get a
transparent base layer labelled "None" in your layer switcher. That works
for me.
--
Ticket URL: <http://trac.openlayers.org/ticket/354#comment:5>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list