This commit is contained in:
vcoppe committed 2026-11-29 12:52:41 +01:00
1 parent 1bd8ac46fe
commit 2cf9a9f982
6 files changed
+545 -12

No files matched your search

+39 -11
View File
@@ -24,6 +24,10 @@ import {
} from 'lucide-static';
import { type RasterDEMSourceSpecification, type StyleSpecification } from 'maplibre-gl';
import bikerouterGravel from '$lib/data/custom/bikerouter-gravel.json';
import {
OPEN_SATELLITE_PROTOCOL,
openSatelliteAttribution,
} from '$lib/components/map/open-satellite';
export const maptilerKeyPlaceHolder = 'MAPTILER_KEY';
@@ -32,25 +36,22 @@ export const basemaps: { [key: string]: string | StyleSpecification } = {
libertySatellite: 'https://styles.gpx.studio/liberty-satellite.json',
osm: 'https://styles.gpx.studio/osm.json',
osmTopo: 'https://styles.gpx.studio/osm-topo.json',
esriSatellite: {
openSatellite: {
version: 8,
sources: {
esriSatellite: {
openSatellite: {
type: 'raster',
tiles: [
'https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/tile/1.0.0/World_Imagery/default/default028mm/{z}/{y}/{x}.jpg',
],
tiles: [`${OPEN_SATELLITE_PROTOCOL}://{z}/{x}/{y}`],
tileSize: 256,
maxzoom: 19,
attribution:
'© <a href="https://www.esri.com/" target="_blank">Esri</a>, Vantor, Earthstar Geographics, and the GIS User Community',
attribution: openSatelliteAttribution,
},
},
layers: [
{
id: 'esriSatellite',
id: 'openSatellite',
type: 'raster',
source: 'esriSatellite',
source: 'openSatellite',
},
],
},
@@ -365,6 +366,27 @@ export const basemaps: { [key: string]: string | StyleSpecification } = {
},
],
},
luxTopo: {
version: 8,
sources: {
luxTopo: {
type: 'raster',
tiles: [
'https://wmts3.geoportail.lu/mapproxy_4_v3/wmts/topogg/GLOBAL_WEBMERCATOR_4_V3/{z}/{x}/{y}.png',
],
tileSize: 256,
maxzoom: 16,
attribution: '<a href="https://geoportail.lu/" target="_blank">geoportail.lu</a>',
},
},
layers: [
{
id: 'luxTopo',
type: 'raster',
source: 'luxTopo',
},
],
},
};
export const overlays: { [key: string]: string | StyleSpecification } = {
@@ -810,7 +832,7 @@ export const basemapTree: LayerTreeType = {
libertySatellite: true,
osm: true,
osmTopo: true,
esriSatellite: true,
openSatellite: true,
openStreetMap: true,
openTopoMap: true,
openHikingMap: true,
@@ -833,6 +855,9 @@ export const basemapTree: LayerTreeType = {
ignFrScan25: true,
ignFrSatellite: true,
},
luxembourg: {
luxTopo: true,
},
new_zealand: {
linz: true,
linzTopo: true,
@@ -1036,7 +1061,7 @@ export const defaultBasemapTree: LayerTreeType = {
libertySatellite: true,
osm: true,
osmTopo: true,
esriSatellite: false,
openSatellite: true,
openStreetMap: true,
openTopoMap: true,
openHikingMap: true,
@@ -1059,6 +1084,9 @@ export const defaultBasemapTree: LayerTreeType = {
ignFrScan25: false,
ignFrSatellite: false,
},
luxembourg: {
luxTopo: false,
},
new_zealand: {
linz: false,
linzTopo: false,