<br><br>On Sunday, September 18, 2011, Tim Baggett <<a href="mailto:tim.baggett@gmail.com">tim.baggett@gmail.com</a>> wrote:<br>> Hi all,<br>><br>> I am using OpenLayers trunk at rev 12352. I noticed that when I<br>
> attempt to create a Control.Scale object with any options, it would<br>> fail to work:<br>><br>><br>> new OpenLayers.Control.Scale( {<br>> div: document.getElementById('scalediv'),<br>
> geodesic: true<br>> } ),<br>><br>> However, if I add no options, then the Scale control would appear in<br>> its default position inside the map.<br>><br>><br>> new OpenLayers.Control.Scale( ),<br>
><br>> Seeing that the ScaleLine control worked fine for me, and that<br>> ScaleLine is a close copy of the Scale control I began looking for<br>> differences. As a result, I deleted the Scale::initialize() function<br>
> in favor of inheriting from Control::initialize() instead just as<br>> ScaleLine does.<br>><br>> The result is that I can now enable geodesic and move my Scale control<br>> outside the map into my own div.<br>
><br>> Patch is attached.<br>><br>> I greatly appreciate the work all have put into OpenLayers, and hope<br>> this helps contribute something (however trivial) back.<br>><br>> Regards,<br>> Tim<br>
<br>Hi Tim<br><br>I'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't looked at your patch yet). Patches in tickets are looked at when the time for a new release comes, patches in emails aren'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>