refactor(front): Clear unused code
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
2a57340a82
commit
1e1342de12
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user