Show the map's satellite layer from EOxCloudless, not Esri
docs/posters.md drops Esri as a source: its terms forbid how this site uses it. The GPS-trace map now takes its satellite layer from EOX's newest Sentinel-2 mosaic, the posters' own fallback, credited and licensed (CC BY-NC-SA 4.0) in the map's corner; the scale moves to the top left so the two-line credit does not cover it. Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
+11
-6
@@ -35,7 +35,7 @@
|
||||
Each layout was traced by GPS along the track. Its <code>geojson</code> format is that trace: a GeoJSON
|
||||
<code>FeatureCollection</code> holding one <code>LineString</code> of <code>[longitude, latitude]</code> points. Any
|
||||
map library draws it as it comes; this page uses <a href="https://leafletjs.com/">Leaflet</a>. Switch to the
|
||||
satellite layer to see the trace follow the tarmac.
|
||||
satellite layer (EOxCloudless, Sentinel-2 at 10 m) to see the trace over the ground.
|
||||
</p>
|
||||
|
||||
<div class="card" id="tree">
|
||||
@@ -98,13 +98,18 @@
|
||||
maxZoom: 19,
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||
}).addTo(map);
|
||||
const satellite = L.tileLayer('https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}', {
|
||||
// EOxCloudless, the newest Sentinel-2 mosaic (10 m): the satellite source the posters use where no photo or national
|
||||
// aerial photo exists (docs/posters.md). Tiles past zoom 15 are the same pixels, so Leaflet scales them up.
|
||||
const satellite = L.tileLayer('https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless-2025_3857/default/g/{z}/{y}/{x}.jpg', {
|
||||
maxZoom: 19,
|
||||
maxNativeZoom: 18,
|
||||
attribution: 'Imagery © Esri, Maxar, Earthstar Geographics',
|
||||
maxNativeZoom: 15,
|
||||
attribution: 'EOxCloudless <a href="https://cloudless.eox.at">https://cloudless.eox.at</a> by EOX IT Services GmbH'
|
||||
+ ' (Contains modified Copernicus Sentinel data 2025),'
|
||||
+ ' <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>',
|
||||
});
|
||||
L.control.layers({ 'OpenStreetMap': osm, 'Satellite (Esri)': satellite }).addTo(map);
|
||||
L.control.scale({ imperial: false }).addTo(map);
|
||||
L.control.layers({ 'OpenStreetMap': osm, 'Satellite (EOxCloudless 2025)': satellite }).addTo(map);
|
||||
// Top left: EOxCloudless's credit runs over two lines at the foot, where it would cover the scale.
|
||||
L.control.scale({ imperial: false, position: 'topleft' }).addTo(map);
|
||||
map.on('focus', () => map.scrollWheelZoom.enable());
|
||||
map.on('blur', () => map.scrollWheelZoom.disable());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user