Closed bjperson closed 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>' });
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>'
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 :)"
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>'
});