Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed radius regardless of zoom level? #27

Open
BARNZ opened this issue Jun 13, 2018 · 2 comments
Open

Fixed radius regardless of zoom level? #27

BARNZ opened this issue Jun 13, 2018 · 2 comments

Comments

@BARNZ
Copy link

BARNZ commented Jun 13, 2018

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.

@jieter
Copy link
Owner

jieter commented Aug 28, 2018

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

@Snaptags
Copy link

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

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

No branches or pull requests

3 participants