<br><br>On Sunday, September 18, 2011, Tim Baggett &lt;<a href="mailto:tim.baggett@gmail.com">tim.baggett@gmail.com</a>&gt; wrote:<br>&gt; Hi all,<br>&gt;<br>&gt; I am using OpenLayers trunk at rev 12352. I noticed that when I<br>
&gt; attempt to create a Control.Scale object with any options, it would<br>&gt; fail to work:<br>&gt;<br>&gt;<br>&gt;       new OpenLayers.Control.Scale( {<br>&gt;         div: document.getElementById(&#39;scalediv&#39;),<br>
&gt;         geodesic: true<br>&gt;       } ),<br>&gt;<br>&gt; However, if I add no options, then the Scale control would appear in<br>&gt; its default position inside the map.<br>&gt;<br>&gt;<br>&gt;       new OpenLayers.Control.Scale(  ),<br>
&gt;<br>&gt; Seeing that the ScaleLine control worked fine for me, and that<br>&gt; ScaleLine is a close copy of the Scale control I began looking for<br>&gt; differences. As a result, I deleted the Scale::initialize() function<br>
&gt; in favor of inheriting from Control::initialize() instead just as<br>&gt; ScaleLine does.<br>&gt;<br>&gt; The result is that I can now enable geodesic and move my Scale control<br>&gt; outside the map into my own div.<br>
&gt;<br>&gt; Patch is attached.<br>&gt;<br>&gt; I greatly appreciate the work all have put into OpenLayers, and hope<br>&gt; this helps contribute something (however trivial) back.<br>&gt;<br>&gt; Regards,<br>&gt; Tim<br>
<br>Hi Tim<br><br>I&#39;d recommend creating a ticket and attaching your patch to it. Set your ticket to milestone 2.12 and to Review if your patch is ready for review and includes unit tests (I haven&#39;t looked at your patch yet). Patches in tickets are looked at when the time for a new release comes, patches in emails aren&#39;t.<br>
<br>Cheers,<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>