From 1e1342de12c92c0ef944f6195c4ccfd33a0147b0 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 3 May 2023 10:08:45 +0200 Subject: [PATCH] refactor(front): Clear unused code Signed-off-by: Thomas Citharel --- js/src/components/LeafletMap.vue | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/js/src/components/LeafletMap.vue b/js/src/components/LeafletMap.vue index 9576d8098..6dfda2b18 100644 --- a/js/src/components/LeafletMap.vue +++ b/js/src/components/LeafletMap.vue @@ -62,7 +62,7 @@ import { LIcon, LControlZoom, } from "@vue-leaflet/vue-leaflet"; -import { computed, nextTick, onMounted, ref } from "vue"; +import { computed, nextTick, ref } from "vue"; import { useMapTiles } from "@/composition/apollo/config"; import { useI18n } from "vue-i18n"; import Locatecontrol from "leaflet.locatecontrol"; @@ -102,19 +102,6 @@ const locationIcon = ref(); const locationIconHTML = computed(() => locationIcon.value?.$el.innerHTML); -onMounted(async () => { - // this part resolve an issue where the markers would not appear - // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore - // eslint-disable-next-line no-underscore-dangle - // delete Icon.Default.prototype._getIconUrl; - // Icon.Default.mergeOptions({ - // iconRetinaUrl: require("leaflet/dist/images/marker-icon-2x.png"), - // iconUrl: require("leaflet/dist/images/marker-icon.png"), - // shadowUrl: require("leaflet/dist/images/marker-shadow.png"), - // }); -}); - const onMapReady = async () => { mapObject.value = mapComponent.value.leafletObject; mountLocateControl();