Maybe check for the changebaselayer event and then use event.layer? Best regards, Bart
> > Hello Bart, > > Thanks for the reply. > > I have tried e.layer.name and e.layer.map.baseLayer.name and both provides > me the previously selected layer's name. > > Is there events that I should listen instead of map's "changelayer" event? > Maybe there's something for LayerSwitcher? > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/changelayer-event-tp5372564p5372665.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html Bart van den Eijnden OSGIS bart...@osgis.nl _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users