jieter / Leaflet-semicircle

Extend Leaflet's circle class to display semicircles.
http://jieter.github.io/Leaflet-semicircle/examples/semicircle.html
MIT License
121 stars 52 forks source link

Semicircle and pm library #30

Closed kumbraGrr closed 5 years ago

kumbraGrr commented 5 years ago

I am trying to measure and show angle using semicircle library. It would measure the angle between two vertices being drawn with PM Leaflet library.

Measuring angles is good, however, drawn semicircle line and the PM lines are not overlapping. I noticed they are overlapping perfectly near 0,0 (Web Mercator) coordinates but if I try to apply this action near poles, as you suppose, distortion is great.

What would be a way to solve this? Any tip is appreciated.

kumbraGrr commented 5 years ago

I fix it with converting lat lng to screen pixels 💃