[OpenLayers-Users] geometry.getLength() returns what format

Pierre GIRAUD bluecarto at gmail.com
Wed Apr 9 03:44:27 EDT 2008


>
>  Actually, I'm using it in 2.6 RC1, and it's working well. And since this
>  feature is provided by a single external js file
>  (Openlayers/Control/Measure.js), I think that will be easy to put this as an
>  openlayers addin. There's no need to change other openlayers files, except
>  the "openlayers.js", where you need to add a single line to make this
>  feature loaded, like:
>
>         var jsfiles = new Array(
>             ...
>             "OpenLayers/Control/Measure.js",
>             ...
>

Actually, you don't really need to add a new line in your OpenLayers.js file.
Adding a new link to your Measure.js would do the job.
<script src="path/to/your/Measure.js"></script>

That way you don't modified anything in OpenLayers.

Regards,
Pierre



More information about the Users mailing list