Upgrade to map libre 6
Deploy Spot / deploy (push) Successful in 47s

This commit is contained in:
2026-07-25 23:59:31 +02:00
parent 9a8b95d237
commit fb500f3c34
4 changed files with 258 additions and 618 deletions
+4 -1
View File
@@ -1,6 +1,7 @@
<script>
import { Map, Marker, LngLatBounds, LngLat, Popup, ScaleControl, NavigationControl, setWorkerUrl } from 'maplibre-gl';
import 'maplibre-gl/dist/maplibre-gl.css';
import { Map, Marker, LngLatBounds, LngLat, Popup, ScaleControl, NavigationControl } from 'maplibre-gl';
import { createApp } from 'vue';
import Lightbox from '@scripts/lightbox';
@@ -11,6 +12,8 @@ import ProjectPopup from '@components/projectPopup';
import ProjectFeed from '@components/projectFeed';
import ProjectSettings from '@components/projectSettings';
setWorkerUrl('maplibre/maplibre-gl-worker.mjs');
class GroupedScaleControl {
constructor(options) {
this.scale = new ScaleControl(options);