Posters from licensed sources only: kept layers, options, credits on every picture #8

Merged
mesh-tools merged 17 commits from feat/poster-layers into master 2026-11-27 14:39:52 +00:00
Showing only changes of commit c3c98a9a74 - Show all commits
+11 -6
View File
@@ -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: '&copy; <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 &copy; 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());