alexandre-melard / leaflet.TileLayer.WMTS

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

Pour l'IGN il n'y a pas besoin de plugin #4

Closed bjperson closed 9 years ago

bjperson commented 9 years ago

orthophotos = L.tileLayer('http://gpp3-wxs.ign.fr/'+ignkey+'/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTHOIMAGERY.ORTHOPHOTOS&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image%2Fjpeg', { minZoom: 1, maxZoom: 19, layername: 'ORTHOIMAGERY.ORTHOPHOTOS', attribution: '© <a href="http://www.geoportail.gouv.fr/depot/api/cgu/licAPI_CGUF.pdf">Géoportail</a>' });

alexandre-melard commented 9 years ago

I'll quote Gilles Cébélieu: "I think this works until we are in webmercator tiling scheme. If not (EPSG:2154 for instance), We might have problems. That's why the WMTS plugin is not useless :)"