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

Does it work with Leaflet to use its toGeoJSON() function? #10

Closed Aaron-Zhao closed 7 years ago

Aaron-Zhao commented 7 years ago

Does it work with Leaflet to use its toGeoJSON() function?

It looks like toGeoJSON() just exports a point rather than a polygon type.

jieter commented 7 years ago

GeoJSON doesn't support circles. In theory, we could export a polygon approximating the (semi-)circle, but what precision should be used?

It's not straightforward enough to implement in this simple plugin.