Ajout du calque IGN espagne
This commit is contained in:
parent
cb05fa1770
commit
11c98ffd90
|
@ -47,10 +47,13 @@ var url_wmts_ign = "//wxs.ign.fr/"+
|
||||||
|
|
||||||
// Differents layers for the map
|
// Differents layers for the map
|
||||||
var osmfr = L.tileLayer('//{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {maxZoom: 20, attribution: 'Maps © <a href="http://www.openstreetmap.fr">OpenSreetMap France</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'});
|
var osmfr = L.tileLayer('//{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {maxZoom: 20, attribution: 'Maps © <a href="http://www.openstreetmap.fr">OpenSreetMap France</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'});
|
||||||
outdoor = L.tileLayer('//{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png', {maxZoom: 18, attribution: 'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
|
outdoor = L.tileLayer('//{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey=333604b332324e6b9efc5f4298c0f643', {maxZoom: 18, attribution: 'Maps © <a href="http://www.thunderforest.com">Thunderforest</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
|
||||||
outdoora = L.tileLayer('//s1.outdooractive.com/osm/OSMSummer/{z}/{x}/{y}.png', {maxZoom: 18, attribution: 'Maps © <a href="http://www.outdooractive.com">Outdoor Active</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
|
outdoora = L.tileLayer('//s1.outdooractive.com/osm/OSMSummer/{z}/{x}/{y}.png', {maxZoom: 18, attribution: 'Maps © <a href="http://www.outdooractive.com">Outdoor Active</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
|
||||||
ostopo = L.tileLayer('//{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {maxZoom: 16, attribution: 'Maps © <a href="http://opentopomap.org">OpenTopoMap</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
|
ostopo = L.tileLayer('//{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {maxZoom: 16, attribution: 'Maps © <a href="http://opentopomap.org">OpenTopoMap</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'}),
|
||||||
ign = L.tileLayer(url_wmts_ign, {maxZoom: 18, attribution: 'Maps & Data © <a href="http://www.ign.fr/">IGN</a>'});
|
ign = L.tileLayer(url_wmts_ign, {maxZoom: 18, attribution: 'Maps & Data © <a href="http://www.ign.fr/">IGN France</a>'});
|
||||||
|
ign_es = L.tileLayer.wms('http://www.ign.es/wms-inspire/mapa-raster', {layers: 'mtn_rasterizado', format: 'image/png', transparent: false, continuousWorld : true, attribution: 'Maps & Data © <a href="http://www.ign.es/ign/main/index.do" target="_blank">IGN España</a>'
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// Creation of the map
|
// Creation of the map
|
||||||
var map = L.map('map', {
|
var map = L.map('map', {
|
||||||
|
@ -72,6 +75,7 @@ var baseLayers = {
|
||||||
"OSM France": osmfr,
|
"OSM France": osmfr,
|
||||||
"OSM Outdoor": outdoor,
|
"OSM Outdoor": outdoor,
|
||||||
"IGN France": ign,
|
"IGN France": ign,
|
||||||
|
"IGN Espagne": ign_es,
|
||||||
"OSM Topo": ostopo,
|
"OSM Topo": ostopo,
|
||||||
"OSM OutdoorActive ": outdoora
|
"OSM OutdoorActive ": outdoora
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue