Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

edge tiles don't load with zoom snap < 1 #25

Open
drheinheimer opened this issue Apr 8, 2018 · 4 comments
Open

edge tiles don't load with zoom snap < 1 #25

drheinheimer opened this issue Apr 8, 2018 · 4 comments

Comments

@drheinheimer
Copy link

drheinheimer commented Apr 8, 2018

When react-leaflet's zoomSnap is, say, 0.5, Google tile layers often (presumably at half-level zooms) do not cover the entire view (see screenshot). For now, my solution is, of course, to use zoomSnap=1, but this should probably be fixed.

image

@drheinheimer drheinheimer changed the title edge tiles don't load with zoom delta < 1 edge tiles don't load with zoom snap < 1 Apr 8, 2018
@Charmatzis
Copy link
Owner

@rheinheimer Hi, I have updated the package with some latest fixes (3.3.0). I believe that now you are OK. Can you confirm it?

@drheinheimer
Copy link
Author

drheinheimer commented Aug 14, 2018

@Charmatzis The half-zoom issue remains.

@Charmatzis
Copy link
Owner

@rheinheimer is this issue remains? I have done an update.

If it remains, could you plz, develop a demo to test it?

@drheinheimer
Copy link
Author

drheinheimer commented Jan 12, 2019

@Charmatzis Unfortunately the update seems to depends on react-leaflet 2.0, not 1.x, which breaks the customizations in my app. So there's no way for me to test this. What changes did you make to fix this?

Update: after looking into this a bit, I think maybe Google Maps doesn't support non-integer zoom levels. So the solution would be to then trick Google? Something akin to https://github.com/TolonUK/Leaflet.EdgeBuffer

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

No branches or pull requests

2 participants