i mean programmatically

thanks!

2010/10/8 Bart van den Eijnden <[email protected]>

> Do you mean programmatically or by drawing a line?
>
> For the first option: each geometry has a distanceTo function which you can
> use. If you need to measure on a sphere, check
> out OpenLayers.Util.distVincenty instead.
>
> If you need a control to do the drawing and return the distance, check out
> OpenLayers.Control.Measure:
>
> http://dev.openlayers.org/releases/OpenLayers-2.10/examples/measure.html
>
> Best regards,
> Bart
>
> --
> Looking for flexible support on OpenLayers or GeoExt? Please check out
> http://www.osgis.nl/support.html
>
> Bart van den Eijnden
> OSGIS
> [email protected]
>
> On Oct 8, 2010, at 10:43 PM, Valeria Muñoz wrote:
>
> Hi
>
>   can i with OpenLayers measure the distance(km or mt) between 2 points?
>
> for example: the measure between -30.6565,-70.87877 and -20.8787 ,-49.8837
> is 1000km (it is just and example, i have no idea how much is the measure
> :))
>
> RG
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to