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> &lt;<a href="mailto:penyaskito@gmail.com">penyaskito@gmail.com</a>&gt; 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( &quot;OpenLayers WMS&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;<a href="http://labs.metacarta.com/wms/vmap0?">http://labs.metacarta.com/wms/vmap0?
</a>&quot;, {layers: &#39;basic&#39;},<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{attribution:&#39;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 &lt;<a href="mailto:tom@ukbassline.co.uk">tom@ukbassline.co.uk</a>&gt; wrote:<br>&gt; Hi,<br>&gt;<br>&gt; Hopefully this is an easy one...<br>&gt;<br>&gt; I have added a license to my page which needs to change if the base map
<br>&gt; changes and I have an array with all the license numbers in.&nbsp;&nbsp;I&#39;ve<br>&gt; registered a function to the event: changebaselayer:<br>&gt; map.events.register(&quot;changebaselayer&quot;, map, function(e) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
document.getElementById(&quot;licensebox&quot;).innerHTML =<br>&gt; licenses[?];<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<br>&gt;<br>&gt; but I need to be able to get the newly selected basemap name in order to<br>&gt; lookup the correct license text in the array.&nbsp;&nbsp;Is there a way to find this
<br>&gt; easily or will I have to subclass layer.WMS in order to use the setMap()<br>&gt; function?<br>&gt;<br>&gt; regards,<br>&gt;<br>&gt; Tom<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list
<br>&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>&gt; <a href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>&gt;<br>&gt;<br><br><br>--<br>Regards,
<br><br>Christian López Espínola<br></blockquote></div><br>