Open drheinheimer opened 6 years ago
@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 The half-zoom issue remains.
@rheinheimer is this issue remains? I have done an update.
If it remains, could you plz, develop a demo to test it?
@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
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.