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