25 lines
No EOL
1.1 KiB
JavaScript
25 lines
No EOL
1.1 KiB
JavaScript
const osm = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
maxZoom: 19,
|
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
});
|
|
const osmHOT = L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
|
|
maxZoom: 19,
|
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Tiles style by <a href="https://www.hotosm.org/" target="_blank">Humanitarian OpenStreetMap Team</a> hosted by <a href="https://openstreetmap.fr/" target="_blank">OpenStreetMap France</a>'
|
|
});
|
|
const IGNOrtho = L.tileLayer("https://wxs.ign.fr/essentiels/geoportail/wmts?" +
|
|
"&REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0" +
|
|
"&STYLE=normal" +
|
|
"&TILEMATRIXSET=PM" +
|
|
"&FORMAT=image/jpeg"+
|
|
"&LAYER=ORTHOIMAGERY.ORTHOPHOTOS"+
|
|
"&TILEMATRIX={z}" +
|
|
"&TILEROW={y}" +
|
|
"&TILECOL={x}",
|
|
{
|
|
minZoom : 0,
|
|
maxZoom : 24,
|
|
opacity : 0.5,
|
|
attribution : "IGN-F/Geoportail",
|
|
tileSize : 256 // les tuiles du Géooportail font 256x256px
|
|
}
|
|
); |