12 Commits

Author SHA1 Message Date
Jon Atkins
522ef34f77 earth radius: change leaflet and leaflet-draw to use the radius value used by the s2 geometry library
this library is used in the ingress backend, so distance calculation, etc are far closer if we use the value from that
2015-03-12 20:47:05 +00:00
Mike Castle
bba6519860 Spell checking, h-r. 2013-11-23 19:16:20 -08:00
Jon Atkins
ee484c54cb draw-tools: fix typo that broke editing 2013-10-17 17:20:45 +01:00
Jon Atkins
c3b6461d47 draw-tools: convert circles to geodesic mode, to match everything else
perhaps could be a bit cleaner, but it'll do for now...
2013-10-16 02:17:13 +01:00
Jon Atkins
75a985b8f5 add support for a snapPoint callback function to leaflet.draw, and use to snap points to portals
also enable repeat mode for marker placement
2013-09-25 08:28:25 +01:00
Jon Atkins
db918ad365 convert polyline/polugon to geodesic 2013-09-24 08:00:19 +01:00
Jon Atkins
8d42cdea00 update leaflet-draw to 0.2.1
(unmodified, except for image paths in css. geodesic changes in next commit)
note: non-minified version this time, to aid any future modifications
2013-09-24 07:42:17 +01:00
qnstie
95130d33b3 Added comment - warning about manual modification of the source. 2013-07-17 22:23:36 +02:00
qnstie
1a39d94344 Added geodesic support for shapes 2013-07-17 22:21:22 +02:00
qnstie
f5f5ce8a55 Corrected usage of private field "_latlngs", which triggered error in GeodesicPolyline 2013-07-17 16:26:01 +02:00
qnstie
e2758bde1e Changed Polyline to GeodesicPolyline 2013-07-17 13:39:09 +02:00
Jon Atkins
d1ef19784f fix draw tools. the leaflet upgrade broke it, so the leaflet.draw needed updating too
some of the hacks to do snap-to on points have been removed, at least for now - they needed major rework to fit in
additionally other customisations added are also removed - this is basically now stock leaflet.draw with edit-mode enabled
2013-05-12 18:54:03 +01:00