react-leaflet-google icon indicating copy to clipboard operation
react-leaflet-google copied to clipboard

edge tiles don't load with zoom snap < 1

Open drheinheim opened this issue 7 years ago • 4 comments

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

drheinheim avatar Apr 08 '18 00:04 drheinheim

@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?

Charmatzis avatar May 26 '18 14:05 Charmatzis

@Charmatzis The half-zoom issue remains.

drheinheim avatar Aug 14 '18 16:08 drheinheim

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

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

Charmatzis avatar Oct 16 '18 08:10 Charmatzis

@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

drheinheim avatar Jan 12 '19 18:01 drheinheim