map: fix bad marker calls
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/474/head
parent
fcd68a5172
commit
7ddcb2c066
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue