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

Start point changes for the same coordinate with different radius in canvas code. #26

Open ud09 opened 6 years ago

ud09 commented 6 years ago

Hi, I'd like to know why didn't use var p = layer._map.latLngToLayerPoint(layer._latlng), in canvas code, and instead you used var p = layer._point,

The canvas code returns different start points in pixels on the same coordinate with different radius, (when the radius is big, because of the projection)