Skip to content

Commit

Permalink
fixed deprecated WMTS endpoints and added recent S2Cloudless versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ungarj committed Sep 11, 2024
1 parent 72aaf8c commit 2a608d1
Showing 1 changed file with 38 additions and 8 deletions.
46 changes: 38 additions & 8 deletions mapchete/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

// Terrain light
var options = extend(defaults, {
url: "https://s2maps-tiles.eu/wmts/",
url: "https://tiles.maps.eox.at/wmts/",
name: "EOX::Maps Terrain Light",
{% if is_mercator %}
layer: 'terrain-light_3857',
Expand All @@ -78,9 +78,39 @@
var terrain_light_wmts_layer = new OpenLayers.Layer.WMTS(options);
map.addLayer(terrain_light_wmts_layer);

// Sentinel-2 Cloudless 2023
var options = extend(defaults, {
url: "https://tiles.maps.eox.at/wmts/",
name: "Sentinel-2 Cloudless 2023",
{% if is_mercator %}
layer: 's2cloudless-2023_3857',
{% else %}
layer: 's2cloudless-2023',
{% endif %}
format: 'image/jpeg',
isBaseLayer: true,
});
var s2cloudless2023_wmts_layer = new OpenLayers.Layer.WMTS(options);
map.addLayer(s2cloudless2023_wmts_layer);

// Sentinel-2 Cloudless 2022
var options = extend(defaults, {
url: "https://tiles.maps.eox.at/wmts/",
name: "Sentinel-2 Cloudless 2022",
{% if is_mercator %}
layer: 's2cloudless-2022_3857',
{% else %}
layer: 's2cloudless-2022',
{% endif %}
format: 'image/jpeg',
isBaseLayer: true,
});
var s2cloudless2022_wmts_layer = new OpenLayers.Layer.WMTS(options);
map.addLayer(s2cloudless2022_wmts_layer);

// Sentinel-2 Cloudless 2021
var options = extend(defaults, {
url: "https://s2maps-tiles.eu/wmts/",
url: "https://tiles.maps.eox.at/wmts/",
name: "Sentinel-2 Cloudless 2021",
{% if is_mercator %}
layer: 's2cloudless-2021_3857',
Expand All @@ -95,7 +125,7 @@

// Sentinel-2 Cloudless 2020
var options = extend(defaults, {
url: "https://s2maps-tiles.eu/wmts/",
url: "https://tiles.maps.eox.at/wmts/",
name: "Sentinel-2 Cloudless 2020",
{% if is_mercator %}
layer: 's2cloudless-2020_3857',
Expand All @@ -110,7 +140,7 @@

// Sentinel-2 Cloudless 2019
var options = extend(defaults, {
url: "https://s2maps-tiles.eu/wmts/",
url: "https://tiles.maps.eox.at/wmts/",
name: "Sentinel-2 Cloudless 2019",
{% if is_mercator %}
layer: 's2cloudless-2019_3857',
Expand All @@ -125,7 +155,7 @@

// Sentinel-2 Cloudless 2018
var options = extend(defaults, {
url: "https://s2maps-tiles.eu/wmts/",
url: "https://tiles.maps.eox.at/wmts/",
name: "Sentinel-2 Cloudless 2018",
{% if is_mercator %}
layer: 's2cloudless-2018_3857',
Expand All @@ -140,7 +170,7 @@

// OSM
var options = extend(defaults, {
url: "https://s2maps-tiles.eu/wmts/",
url: "https://tiles.maps.eox.at/wmts/",
name: "OpenStreetMap",
{% if is_mercator %}
layer: 'osm_3857',
Expand All @@ -155,7 +185,7 @@

// Coastline
var options = extend(defaults, {
url: "https://s2maps-tiles.eu/wmts/",
url: "https://tiles.maps.eox.at/wmts/",
name: "EOX::Maps Coastline",
{% if is_mercator %}
layer: 'coastline_3857',
Expand Down Expand Up @@ -184,7 +214,7 @@

// Overlay
var options = extend(defaults, {
url: "https://s2maps-tiles.eu/wmts/",
url: "https://tiles.maps.eox.at/wmts/",
name: "EOX::Maps Base Overlay",
{% if is_mercator %}
layer: 'overlay_base_3857',
Expand Down

0 comments on commit 2a608d1

Please sign in to comment.