Commit Graph

16 Commits

Author SHA1 Message Date
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
a275ea1673 geodesic: remove dependancy on L.LatLng.DEG_TO_RAD/RAD_TO_DEG, in preperation for leaflet 0.8 2014-03-22 01:46:51 +00:00
b31d973cff increase min line segments used for geodesic circles - improves portal range circles at smaller sizes 2014-01-05 22:45:23 +00:00
e536fb6d12 geodesic line drawing: alternative intermediate point calculation code - based on simpler lon->lat formula rather than N intermediate points
more than good enough for line drawing, and hopefully will avoid odd rounding issues seen on mobile
2013-12-19 03:30:57 +00:00
78e9983d90 work-around for mobile-specific geodesic line drawing issue - appears to be an odd rounding problem
not ideal, but better than the current situation
2013-12-15 06:08:54 +00:00
4a9b13eade Spell checking, s-z, plus a couple of missed ones. 2013-11-24 00:19:25 -08:00
27bb6f058e Spell checking, d-g. 2013-11-22 23:31:05 -08:00
e6c0c9a51a geodesic lines: improve the handling for lines that extend beyond the antimeridian. no odd straight line segments
leaflet doesn't have particularly great handling for this, but this is a reasonable measure for now
2013-11-21 05:30:21 +00:00
51bb866dc6 geodesic lines - improved handling of lines that cross the antimeridian
works fine as long as the longitude difference is under 180 degrees
2013-10-27 16:06:35 +00:00
5b81fa4086 fix geodesic circle - formula had errors!
https://plus.google.com/108582664457219405296/posts/CoNTvk5i4xF
2013-10-20 22:55:55 +01:00
94eeb5a728 in geodesic line calculation, add the final point unmodified rather than running through the maths
fix #471 - and is a slight optimisation
2013-08-04 20:49:58 +01:00
8563498ded fix geodesic circle radius - was scaling the radius by PI 2013-08-02 07:31:03 +01:00
16e15dfb51 first attempt at geodesic circles - for #292 (alsao see #201 and #425) 2013-08-02 07:21:04 +01:00
e7dcddb1b6 commit start of work, so no files are pending for new release 2013-08-01 00:12:46 +01:00
5acd6d11f4 Extended redraw() method to fix behavior during editing 2013-07-17 16:16:23 +02:00
b67feb4590 Geodesic extension for Leaflet from https://github.com/Fragger/Leaflet.Geodesic 2013-07-17 13:26:59 +02:00