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

UTFGrid is not working when zoom level is non-integer (Leaflet 1.0) #50

Open
alperdincer opened this issue Apr 4, 2016 · 3 comments
Open

Comments

@alperdincer
Copy link

I'm working on a project to show zoom levels like 1/1.000.000 so I need to zoom with decimals. When I'm using zoom level with decimals UTFGrid is not working. Is there a way to solve this issue?

@danzel
Copy link
Owner

danzel commented Apr 5, 2016

We probably need to round the zoom level.

Check out anywhere we call map.getZoom() and round them (or truncate?) and see how that goes.

@alperdincer
Copy link
Author

I tried Math.round() and Math.floor() where map.getZoom() is used but it is not working. Is there any alternative solution?

@danzel
Copy link
Owner

danzel commented Apr 6, 2016

I feel like this should work, this is the fix that was done on markercluster:
Leaflet/Leaflet.markercluster#472

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