refactor(front): Clear unused code

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2023-05-03 10:08:45 +02:00
parent 2a57340a82
commit 1e1342de12
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -62,7 +62,7 @@ import {
LIcon, LIcon,
LControlZoom, LControlZoom,
} from "@vue-leaflet/vue-leaflet"; } 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 { useMapTiles } from "@/composition/apollo/config";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import Locatecontrol from "leaflet.locatecontrol"; import Locatecontrol from "leaflet.locatecontrol";
@ -102,19 +102,6 @@ const locationIcon = ref();
const locationIconHTML = computed(() => locationIcon.value?.$el.innerHTML); 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 () => { const onMapReady = async () => {
mapObject.value = mapComponent.value.leafletObject; mapObject.value = mapComponent.value.leafletObject;
mountLocateControl(); mountLocateControl();