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

Zoom in/out not to scale. #1

Open
mikeatlas opened this issue Jul 31, 2015 · 1 comment
Open

Zoom in/out not to scale. #1

mikeatlas opened this issue Jul 31, 2015 · 1 comment

Comments

@mikeatlas
Copy link

Nice little library!

What about handling proper scale/zoom ratios? Screenshot example of zooming out:

That's a big boat

(That's quite a big boat!)

@thomasbrueggemann
Copy link
Owner

Definitely worth thinking about.

But interesting that the default Leaflet Icon doesn't scale either and people kind of prefer clustering markers over displaying scaled versions (of course that is mostly performance driven).

I see the point here though since this marker is modeled after a physical object and watching a fleet of ships would look funny non-scaled. And I believe an interim solution for you could be to apply the CSS3 scale property to the marker DOM according to the current zoom level.

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

2 participants