From 606b2be16730f85587d643bdc6110318660e36df Mon Sep 17 00:00:00 2001 From: hgosalia Date: Fri, 29 May 2026 17:26:12 -0400 Subject: [PATCH] Feature: Swap out Esri for EOX Satellite --- LICENSE | 2 +- css/styles.css | 6 +++--- index.html | 2 +- js/map.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index 7afcc7d..a4176ad 100644 --- a/LICENSE +++ b/LICENSE @@ -43,5 +43,5 @@ This project includes the following third-party software: - Map data: OpenStreetMap contributors (ODbL 1.0) - Map tiles: OpenFreeMap (https://openfreemap.org) -- Satellite imagery: Esri, Maxar, Earthstar Geographics +- Satellite imagery: EOX IT Services GmbH — Sentinel-2 cloudless 2020 (CC BY 4.0) — https://s2maps.eu - Geocoding: Nominatim / OpenStreetMap (ODbL 1.0) diff --git a/css/styles.css b/css/styles.css index 5734469..5195b6d 100644 --- a/css/styles.css +++ b/css/styles.css @@ -166,9 +166,9 @@ input,textarea,select{font-family:var(--font)} #map{width:100%;height:100%} #map:not(.dark-map):not(.sat-mode) canvas{filter:brightness(0.85)} #map.dark-map canvas{filter:brightness(1.8) contrast(0.9);will-change:filter} -#esri-attribution{display:none;position:absolute;bottom:6px;left:6px;background:rgba(30,30,30,.6);color:#aaa;font-size:.55rem;padding:2px 6px;border-radius:4px;z-index:2;pointer-events:auto} -#esri-attribution a{color:var(--accent);text-decoration:none} -#map.sat-mode~#esri-attribution{display:block} +#sat-attribution{display:none;position:absolute;bottom:6px;left:6px;background:rgba(30,30,30,.6);color:#aaa;font-size:.55rem;padding:2px 6px;border-radius:4px;z-index:2;pointer-events:auto} +#sat-attribution a{color:var(--accent);text-decoration:none} +#map.sat-mode~#sat-attribution{display:block} .maplibregl-ctrl-bottom-right{bottom:16px!important;right:2px!important} .maplibregl-ctrl-group{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:10px!important;overflow:hidden;box-shadow:var(--shadow)!important} .maplibregl-ctrl-group button{background:var(--surface)!important;border-bottom:1px solid var(--border)!important} diff --git a/index.html b/index.html index ada8dbe..81d99c1 100644 --- a/index.html +++ b/index.html @@ -149,7 +149,7 @@
Starting…
-
© Esri
+
© EOX (Sentinel-2 cloudless)
diff --git a/js/map.js b/js/map.js index 1b6d19e..39ef068 100644 --- a/js/map.js +++ b/js/map.js @@ -12,7 +12,7 @@ const STYLE_BRIGHT = 'https://tiles.openfreemap.org/styles/bright'; const STYLE_DARK = 'https://tiles.openfreemap.org/styles/dark'; const STYLE_SAT = { version:8, - sources:{sat:{type:'raster',tiles:['https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}'],tileSize:256,maxzoom:19}}, + sources:{sat:{type:'raster',tiles:['https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless-2020_3857/default/g/{z}/{y}/{x}.jpg'],tileSize:256,maxzoom:18}}, layers:[{id:'sat',type:'raster',source:'sat',paint:{'raster-fade-duration':0}}] }; function normalizeDarkLabels() {