fixes map attribution && adds OpenFreeMap

This commit is contained in:
Christian Beutel
2025-06-21 13:44:11 +02:00
parent b5a3864f04
commit 369202ec42
5 changed files with 9 additions and 30 deletions

View File

@@ -866,12 +866,12 @@
}),
),
{
text: "Open Street Maps",
value: "/styles/osm.json",
text: "OpenFreeMap",
value: "https://tiles.openfreemap.org/styles/liberty",
thumbnail: "https://tile.openstreetmap.org/1/0/0.png",
},
{
text: "Open Topo Maps",
text: "OpenTopoMap",
value: "/styles/otm.json",
thumbnail: "https://tile.opentopomap.org/1/0/0.png",
},
@@ -907,7 +907,7 @@
mapStyles[preferredMapStyleIndex].value ??
mapStyles[0].value,
center: [initialState.lng, initialState.lat],
zoom: initialState.zoom,
zoom: initialState.zoom
},
...mapOptions,
};

View File

@@ -658,7 +658,7 @@
elevationProfileContainer={"epc-container"}
showStyleSwitcher={false}
showFullscreen={true}
mapOptions={{ attributionControl: false }}
mapOptions={{ attributionControl: {compact: true} }}
onfullscreen={toggleMapFullScreen}
bind:markers
></MapWithElevationMaplibre>