[OpenLayers-Users] accessing the current base layer [SEC=UNCLASSIFIED]

Jay Douillard jay.douillard at ubc.ca
Thu Mar 26 19:05:31 EDT 2009


Thanks Matthew!

Not sure how I missed that! I had looked over that document a number of times!

----
Jay 

----- Original Message -----
From: "Matthew Doyle" <M.Doyle at bom.gov.au>
To: "Jay Douillard" <jay.douillard at ubc.ca>
Cc: "OpenLayers Mailing List" <users at openlayers.org>
Sent: Thursday, March 26, 2009 3:54:47 PM GMT -08:00 US/Canada Pacific
Subject: RE: [OpenLayers-Users] accessing the current base layer [SEC=UNCLASSIFIED]

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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] 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
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users



More information about the Users mailing list