Skip to content

Update from IITC#4

Open
johnd0e wants to merge 33 commits intoFragger:masterfrom
IITC-CE:master
Open

Update from IITC#4
johnd0e wants to merge 33 commits intoFragger:masterfrom
IITC-CE:master

Conversation

@johnd0e
Copy link

@johnd0e johnd0e commented Feb 18, 2019

qnstie and others added 15 commits February 18, 2019 10:22
…han running through the maths fix #471 - and is a slight optimisation
…an works fine as long as the longitude difference is under 180 degrees
… antimeridian. no odd straight line segments leaflet doesn't have particularly great handling for this, but this is a reasonable measure for now
… to be an odd rounding problem not ideal, but better than the current situation
…e - 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
… 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
@johnd0e
Copy link
Author

johnd0e commented Feb 27, 2019

964e3d4 is problematic: see iitc-project/ingress-intel-total-conversion#1011

@johnd0e johnd0e force-pushed the master branch 9 times, most recently from 76a18f8 to 56b56af Compare August 5, 2019 13:54
@johnd0e johnd0e force-pushed the master branch 3 times, most recently from f1464f7 to 54f7666 Compare August 8, 2019 09:52
johndoe added 5 commits August 9, 2019 18:42
- `points` variable was undeclared
- eslint: no-undef, eqeqeq, semi, no-trailing-spaces
- fix url, fix mistypes in comments
- clean up obsolete MultiPoly* code (that was already commented out)
- remove unused `spliceLatLngs`
- make L.GeodesicCircle constructor signature compatible to Leaflet 1.x L.Circle
- update README.md
get rid of unneeded submodules and dependencies
@johnd0e johnd0e force-pushed the master branch 2 times, most recently from 0224c15 to 39c4fba Compare August 13, 2019 07:55
johndoe added 10 commits August 23, 2019 14:57
very minor (mostly) space-related changes
use common mixin instead of custom factory function
So it's now possible to override values, e.g.:
```
  L.GeodesicCircle.mergeOptions({           // default:
    segmentsCoeff: 500,                     //    1000
    segmentsMin: 96                         //      48
  });
  var polyOptions = { segmentsCoeff: 500 }; //    5000
  L.GeodesicPolyline.mergeOptions(polyOptions);
  L.GeodesicPolygon.mergeOptions(polyOptions);
```
this._geodesicConvertLines expects normalized coords array
reformat "Latitude of point on GC" formula to exactly match ref: http://www.edwilliams.org/avform.htm#Int

remove excessive L.LatLng constructor
for the sake of greater consistency
start/end points added in processPoly
Refactor for easy options/methods overriding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants