From ee7367e086e474e3bfae5835c339518de954cdf2 Mon Sep 17 00:00:00 2001 From: vincentsarago Date: Wed, 23 Aug 2023 23:48:01 +0200 Subject: [PATCH] replace stamen basemap by osm --- .../eoapi/raster/templates/mosaic-builder.html | 12 ++++-------- .../raster/eoapi/raster/templates/stac-viewer.html | 12 ++++-------- .../eoapi/stac/eoapi/stac/templates/stac-viewer.html | 12 ++++-------- 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html b/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html index f492aa9..b31c19f 100644 --- a/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html +++ b/runtime/eoapi/raster/eoapi/raster/templates/mosaic-builder.html @@ -265,24 +265,20 @@ style: { version: 8, sources: { - 'toner-lite': { + 'osm': { type: 'raster', tiles: [ - 'https://stamen-tiles-a.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-b.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-c.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-d.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png' + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png' ], tileSize: 256, - attribution: - 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.' + attribution: 'Map data © OpenStreetMap contributors' } }, layers: [ { 'id': 'basemap', 'type': 'raster', - 'source': 'toner-lite', + 'source': 'osm', 'minzoom': 0, 'maxzoom': 20 } diff --git a/runtime/eoapi/raster/eoapi/raster/templates/stac-viewer.html b/runtime/eoapi/raster/eoapi/raster/templates/stac-viewer.html index c002032..052a4af 100644 --- a/runtime/eoapi/raster/eoapi/raster/templates/stac-viewer.html +++ b/runtime/eoapi/raster/eoapi/raster/templates/stac-viewer.html @@ -315,24 +315,20 @@ style: { version: 8, sources: { - 'toner-lite': { + 'osm': { type: 'raster', tiles: [ - 'https://stamen-tiles-a.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-b.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-c.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-d.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png' + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png' ], tileSize: 256, - attribution: - 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.' + attribution: 'Map data © OpenStreetMap contributors' } }, layers: [ { 'id': 'basemap', 'type': 'raster', - 'source': 'toner-lite', + 'source': 'osm', 'minzoom': 0, 'maxzoom': 20 } diff --git a/runtime/eoapi/stac/eoapi/stac/templates/stac-viewer.html b/runtime/eoapi/stac/eoapi/stac/templates/stac-viewer.html index bd4320c..c48f6c4 100644 --- a/runtime/eoapi/stac/eoapi/stac/templates/stac-viewer.html +++ b/runtime/eoapi/stac/eoapi/stac/templates/stac-viewer.html @@ -292,24 +292,20 @@ style: { version: 8, sources: { - 'toner-lite': { + 'osm': { type: 'raster', tiles: [ - 'https://stamen-tiles-a.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-b.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-c.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png', - 'https://stamen-tiles-d.a.ssl.fastly.net/toner-lite/{z}/{x}/{y}.png' + 'https://tile.openstreetmap.org/{z}/{x}/{y}.png' ], tileSize: 256, - attribution: - 'Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.' + attribution: 'Map data © OpenStreetMap contributors' } }, layers: [ { 'id': 'basemap', 'type': 'raster', - 'source': 'toner-lite', + 'source': 'osm', 'minzoom': 0, 'maxzoom': 20 }