update frontend lib : correction leaflet - #1815

This commit is contained in:
Laurent GAY
2025-10-24 17:54:17 +02:00
committed by setop
parent 58a1d857a1
commit 5d0cdb6116
2 changed files with 54 additions and 54 deletions

View File

@@ -66,7 +66,7 @@ import {
import { computed, nextTick, ref } from "vue";
import { useMapTiles } from "@/composition/apollo/config";
import { useI18n } from "vue-i18n";
import Locatecontrol from "leaflet.locatecontrol";
import { LocateControl } from "leaflet.locatecontrol";
import CrosshairsGps from "vue-material-design-icons/CrosshairsGps.vue";
import MapMarker from "vue-material-design-icons/MapMarker.vue";
import { useDebounceFn } from "@vueuse/core";
@@ -112,7 +112,7 @@ const mountLocateControl = () => {
if (canDoGeoLocation.value && mapObject.value) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
locateControl.value = new Locatecontrol({
locateControl.value = new LocateControl({
strings: { title: t("Show me where I am") as string },
position: "topleft",
drawCircle: false,