Distance between two markers

5,836 views
Skip to first unread message

Mohamed Salah

unread,
Feb 4, 2015, 10:07:56 AM2/4/15
to leafl...@googlegroups.com
Hi..

I'm totally new to leaflet, and I'm wondering if I can get the distance in Kilo meters between two points on map?
Is it possible?

Thank you 
MSDN

Claudio Schilling

unread,
Feb 4, 2015, 10:14:36 AM2/4/15
to leafl...@googlegroups.com
Yes, use distanceTo() method from LatLng: http://leafletjs.com/reference.html#latlng


Cláudio


--

---
You received this message because you are subscribed to the Google Groups "Leaflet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mogli

unread,
Feb 7, 2015, 3:31:41 AM2/7/15
to leafl...@googlegroups.com
Use distanceTo() method - http://leafletjs.com/reference.html#latlng
Check attach file - may this helps you
Distance-between-markers.zip
Reply all
Reply to author
Forward
0 new messages