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 level of leaflet and global state are not in sync #15

Open
kimmobrunfeldt opened this issue Dec 18, 2016 · 2 comments
Open

Zoom level of leaflet and global state are not in sync #15

kimmobrunfeldt opened this issue Dec 18, 2016 · 2 comments
Labels

Comments

@kimmobrunfeldt
Copy link
Member

Global state says zoom level is 9, map tiles show 10

@kimmobrunfeldt
Copy link
Member Author

This happens because detectRetina works like that. http://leafletjs.com/reference-1.0.3.html#tilelayer

If true and user is on a retina display, it will request four tiles of half the specified size and a bigger zoom level in place of one to utilize the high resolution.

@kimmobrunfeldt
Copy link
Member Author

However we are doing rendering in backend based on the bounding coordinaates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant