[OpenLayers-Users] accessing the current base layer

Andreas Hocevar ahocevar at opengeo.org
Fri Mar 27 17:23:46 EDT 2009


On Thu, Mar 26, 2009 at 11:31 PM, Jay Douillard <jay.douillard at ubc.ca> wrote:
> 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..

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

map.baseLayer

Regards,
Andreas.

-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list