alexandre-melard / leaflet.TileLayer.WMTS

Add WMTS layering for leaflet
Other
78 stars 84 forks source link

Tile matrix assumed to start at a certain point #26

Open FrankyBoy opened 4 years ago

FrankyBoy commented 4 years ago

Hi!

As far as I can tell, the library assumes that the world starts at <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>. This is not guaranteed and in fact in my use case (local overlays over a base map) it is not true (eg. <TopLeftCorner>1730654.0 6154088.0</TopLeftCorner>). This results in the tiles rows/cols being miscalculated, which in turn means that the map cannot be rendered. Please check if this issue can somehow be fixed.

Cheers :)