The problem I had is that I was looking at the created () function as the function that was creating the google map points, which was incorrect. Ive seen that there is a v-for loop referencing markers which can be changed for a computed property that updates the computed function runs.
In the code below I exchanged 'Markers' to 'updatedMarkers' from the computed property.
computed: {
updateMarkers () {
return this.markers.slice()
.filter((marker) => {
return (
marker.infoText.id >= this.priceabove
);
})
}
},
},
<GmapMarker
:key="index"
v-for="(m, index) in updateMarkers"
:position="m.position"
:clickable="true"
@click="toggleInfoWindow(m,i)"
/>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…