That might be just what I need, thanks.<br><br><div><span class="gmail_quote">On 6/11/07, <b class="gmail_sendername">Christian López Espínola</b> <<a href="mailto:penyaskito@gmail.com">penyaskito@gmail.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Tom,<br>Maybe you want to apply the patch attached at ticket #103<br>(<a href="http://trac.openlayers.org/ticket/103">
http://trac.openlayers.org/ticket/103</a>)<br><br>Usage:<br> var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",<br> "<a href="http://labs.metacarta.com/wms/vmap0?">http://labs.metacarta.com/wms/vmap0?
</a>", {layers: 'basic'},<br> {attribution:'Layer provided by OpenLayers});<br><br> map.addControl(new OpenLayers.Control.Attribution());<br><br>The attribution field can display html.<br><br>Hope this helps.
<br><br><br>On 6/11/07, Tom <<a href="mailto:tom@ukbassline.co.uk">tom@ukbassline.co.uk</a>> wrote:<br>> 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
<br>> changes and I have an array with all the license numbers in. I've<br>> registered a function to the event: changebaselayer:<br>> map.events.register("changebaselayer", map, function(e) {<br>>
document.getElementById("licensebox").innerHTML =<br>> licenses[?];<br>> });<br>><br>> but I need to be able to get the newly selected basemap name in order to<br>> lookup the correct license text in the array. Is there a way to find this
<br>> easily or will I have to subclass layer.WMS in order to use the setMap()<br>> function?<br>><br>> regards,<br>><br>> Tom<br>><br>> _______________________________________________<br>> Users mailing list
<br>> <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>> <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>><br>><br><br><br>--<br>Regards,
<br><br>Christian López Espínola<br></blockquote></div><br>