When using the matrixIds provided by the getDefaultMatrix function, the tiles are shifted by one tile to the right when displaying zoom level 19. It seems that the values for the topLeftCorner are not exact enough. Using topLeftCorner : new L.LatLng(20037508.3428,-20037508.3428) instead of topLeftCorner : new L.LatLng(20037508,-20037508) solves the problem for me. Unfortunately I don't know where I originally had the number 20037508.3428 from, but searching the web for it shows, that this more exact value is widely used.
When using the matrixIds provided by the getDefaultMatrix function, the tiles are shifted by one tile to the right when displaying zoom level 19. It seems that the values for the topLeftCorner are not exact enough. Using
topLeftCorner : new L.LatLng(20037508.3428,-20037508.3428)
instead oftopLeftCorner : new L.LatLng(20037508,-20037508)
solves the problem for me. Unfortunately I don't know where I originally had the number 20037508.3428 from, but searching the web for it shows, that this more exact value is widely used.Example: Zoom 18![image](https://cloud.githubusercontent.com/assets/3717998/4829150/04698ce0-5f85-11e4-8f73-0206b649bd90.png)
Zoom 19![image](https://cloud.githubusercontent.com/assets/3717998/4829271/d910a370-5f85-11e4-83f5-60080436a85d.png)