Skip to content

Commit

Permalink
fix problem with markers when scaling a map from commit 4dcd3ca
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4tim committed Aug 29, 2024
1 parent 8c11c9b commit bc53c80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@

<script>
import { useStore } from "@/store";
import { toRaw } from "vue";
import Footer from "../components/footer/Footer.vue";
import config from "../config";
import { drawuser, init, removeMap, setTheme, setview } from "../utils/map/instance";
import { init as initMarkers } from "../utils/map/marker";
import { init as initWind } from "../utils/map/wind";
import { getTypeProvider } from "../utils/utils";
import Footer from "../components/footer/Footer.vue";
import config from "../config";
export default {
emits: ["city", "clickMarker", "close"],
Expand Down Expand Up @@ -259,7 +260,7 @@ export default {
}, 50)
});
initMarkers(this.map, this.measuretype, (data) => {
initMarkers(toRaw(this.map), this.measuretype, (data) => {
this.$emit("clickMarker", data);
});
Expand Down

0 comments on commit bc53c80

Please sign in to comment.