Skip to content

Commit

Permalink
fix(gmap-vue): change repaint method by render
Browse files Browse the repository at this point in the history
We change the repaint method to render and use markers property instead
of the old method getMarkers.
The setMap methos is inherited from OverlayView class.

Fix #247
  • Loading branch information
diegoazh committed Feb 18, 2022
1 parent 7f674a9 commit 4d7b7c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gmap-vue/src/components/cluster-icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ export default {
},
updated() {
if (this.$clusterObject) {
this.$clusterObject.repaint();
this.$clusterObject.render();
}
},
methods: {
reinsertMarkers() {
const oldMarkers = this.$clusterObject.getMarkers();
const oldMarkers = [...this.$clusterObject.markers];
this.$clusterObject.clearMarkers();
this.$clusterObject.addMarkers(oldMarkers);
},
Expand Down

0 comments on commit 4d7b7c9

Please sign in to comment.