TolonUK/Leaflet.EdgeBuffer

Issues with new GoogleMutant plugin

Opened this issue · 3 comments

Thanks for providing this leaflet plugin which is a really great improvement! Anyway we discovered some issues with the new Google leaflet plugin GoogleMutant
(https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant/) - tiles are missing on basemap change (eg from OSM to Google Roadmap) if the option edgeBufferTiles is not explicitly set to 0 for GoogleMutant basemaps. Perhaps this could be added to the readme so that other users do not run into the same issue (which took us quite a while to figure out ;-)

Anyway as the edgeBuffer does not work for GoogleMutant in the first run (due to the way tiles are loaded via GoogleMutant), it would be great in the long run if EdgeBuffer support could also be added for GoogleMutant basemaps. We tried to figure out how to best achieve this, but did not succeed here yet - so any help would be much appreciated!

@TolonUK FYI - please see the comment from Ivan on how to add EdgeBuffer support to GoogleMutant at https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant/issues/27#note_23940563 - this does not work yet though - we tried as you can see in the following comment, it only worked if edgeBufferTiles was set to 1. Any help here would be appreciated!

@robertharm Thanks for bringing this to my attention, I'll make the documentation update as you suggest.

I've got a fix for the missing tiles problem, as per https://gitlab.com/IvanSanchez/Leaflet.GridLayer.GoogleMutant/issues/27#note_24035411, but that still doesn't make the edgebuffer functionality work as it should. I'll investigate this further based on the suggestion from @IvanSanchez.

@TolonUK you´re welcome. we did some further tests and it seems GoogleMutant is not working with EdgeBuffer even if we follow the approach from Ivan in # 27 - so therefore we decided to disable EdgeBuffer for GoogleMutant basemaps for now...