Hi,<br><br>Hopefully this is an easy one...<br><br>I have added a license to my page which needs to change if the base map changes and I have an array with all the license numbers in. I've registered a function to the event: changebaselayer:
<br><span style="font-family: courier new,monospace;">map.events.register("changebaselayer", map, function(e) {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
document.getElementById("licensebox").innerHTML = licenses[?];</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> });</span><br>
<br>but I need to be able to get the newly selected basemap name in order to lookup the correct license text in the array. Is there a way to find this easily or will I have to subclass layer.WMS in order to use the setMap() function?
<br><br>regards,<br><br>Tom<br>