[Vuejs]-Google Maps Markers refreshing weirdly when bounds changed

0๐Ÿ‘

โœ…

Here is the solution to this problem:

<google-markers v-for="marker in markers" :key='marker' :marker="marker" :map="map" :google="google"></google-markers>

Just adding the :key corrected this bug and the markers are now showing correctly on the map.

0๐Ÿ‘

If markers are reconstructed when bounds changed, then all markers has to remove/delete first and then reset on map.

Leave a comment