Hi,

I'd like to switch on/off basemap. I found the following which works so far:

  // Empty layer in order to switch off basemap (given a transparent
image called clear.gif)
  var clearBaseLayer = new OpenLayers.Layer.Image(
    "None",
    'img/clear.gif',
    new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34);
// BOUNDS_OF_MERCATOR
    new OpenLayers.Size(8, 8),
    {isBaseLayer: true}
  );

The only problem here is, that when switching back to th original
basemap (whatever this is in your application) the extent was/is set
back to some larger area.

What can I do?
-S.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to