Leaflet-semicircle icon indicating copy to clipboard operation
Leaflet-semicircle copied to clipboard

Fixed radius regardless of zoom level?

Open BARNZ opened this issue 6 years ago • 2 comments

Is there a way to make it so that zooming the map doesn't affect the radius of the semicircle when it is drawn?

i.e Zooming in real close on the demo map makes the semicircles extremely large, and I am after a way to keep their size fixed regardless of zoom level. e.g always have a radius of say 100px

My first attempt was a simple linear transform of the radius parameter based on current zoom level of the map which doesn't quite work, it looks as though the way things are projected isn't linear or I'm misunderstanding something.

BARNZ avatar Jun 13 '18 01:06 BARNZ

That would mean a second class, someting like SemicircleMarker, analogous to L.CircleMarker. You are welcome to open a PR.

jieter avatar Aug 28 '18 13:08 jieter

There already is a SemiCircleMarker in the code. Has this been fully implemented already?

Snaptags avatar Jul 10 '19 13:07 Snaptags