Re: [OpenLayers-Users] Layer Switcher Question

2008-01-25 Thread Christian López Espínola
And you should listen to the changebaselayer event... Something like this.map.events.register(changebaselayer, this, updateActiveLayerName); and function updateActiveLayerName(evt) { document.getElementById(mylbl).innerText = map.baseLayer.name; } This code is untested (written directly

Re: [OpenLayers-Users] Layer Switcher Question

2008-01-25 Thread Eric Lemoine
On Jan 25, 2008 7:01 PM, D. Eric Keefauver [EMAIL PROTECTED] wrote: Hello all, I apologize if this should be a developer post but I am curious as to how one might capture the base layer name that is active base layer within the layer switcher and place it on the map page once the user

[OpenLayers-Users] Layer Switcher Question

2008-01-25 Thread D. Eric Keefauver
Hello all, I apologize if this should be a developer post but I am curious as to how one might capture the base layer name that is active base layer within the layer switcher and place it on the map page once the user collapses the layer switcher. We want to have a visual place holder for the