map: fix bad marker calls

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/474/head
Varun Patil 2023-03-11 00:29:23 -08:00
parent fcd68a5172
commit 7ddcb2c066
1 changed files with 9 additions and 1 deletions

View File

@ -45,7 +45,7 @@
<script lang="ts">
import { defineComponent } from "vue";
import { LMap, LTileLayer, LMarker, LPopup, LIcon } from "vue2-leaflet";
import { latLngBounds } from "leaflet";
import { latLngBounds, Icon } from "leaflet";
import { IPhoto } from "../../types";
import { API } from "../../services/API";
@ -73,6 +73,14 @@ type IMarkerCluster = {
dummy?: boolean;
};
delete (<any>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"),
});
export default defineComponent({
name: "MapSplitMatter",
components: {