Hi Jay,

Yes, map.baseLayer - stores the currently selected base layer. I hope that's 
what you were after.

http://dev.openlayers.org/releases/OpenLayers-2.7/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.baseLayer

Cheers,
Matt


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Jay Douillard
Sent: Friday, 27 March 2009 9:32 AM
To: OpenLayers Mailing List
Subject: [OpenLayers-Users] accessing the current base layer

Hello

Is there an attribute that stores the current baselayer when using the layer 
switcher? eg map.base_layer ? I've looked around at the documentation and can't 
seem to find a reference..

Thanks!




----
Jay
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to