kartena / Proj4Leaflet

Smooth Proj4js integration with Leaflet.
http://kartena.github.io/Proj4Leaflet/
BSD 2-Clause "Simplified" License
589 stars 173 forks source link

Tiles disappear when zooming #168

Closed Adrianod closed 4 years ago

Adrianod commented 4 years ago

I have encountered a bug using the WMTS-example from https://github.com/kartena/Proj4Leaflet/tree/master/examples/wmts

Tiles disappear when zooming out one zoom level and then zooming back in again.

Video of bug: https://www.youtube.com/watch?v=AerPmtvXXXE

To reproduce Visit http://tiles.calazoffice.biz/bug/, zoom out once, then zoom in again. I have reproduced this behaviour in Chrome, Safari and Firefox on Mac.

The bug does not seem to appear with a smaller browser window. Could this be some sort of out of bounds problem? No error appears in the javascript console.

Inspecting the leaflet-tile-container-element after the tiles have disappeared it's styled as translate3d(1.89185e+20px, 9.21292e+23px, 0px), which seems abnormal compared to when tiles appear as normal.

Adrianod commented 4 years ago

Solved, I was using an old version of proj4js. https://github.com/Leaflet/Leaflet/issues/6994