[OpenLayers-Users] Distance Between Two Points
Brian Krebs
bkrebs at korterra.com
Thu Apr 12 17:11:02 EDT 2007
I'm geocoding an address and using the lat/lon to center my map when it
is first displayed. The user can then click on the map to place a
marker which I'm capturing the lat/lon of. The customer has a
requirement to not allow saving the lat/lon of the marker if it is more
than 1 mile away from the initial center lat/lon. I noticed that in 2.4
RC1, there is a distanceTo function under Geometry. I'm not ready to
move to that version yet so I'm using 2.3. Is there some similar
functionality in this version or can someone give me a code example of
how to determine the distance?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070412/7a667dfe/attachment.html
More information about the Users
mailing list