<template>
GmapMarker
v-for="(marker, index) in markerArray"
:key="index"
:position="marker.position"
@dragend="getCoordinates"
:draggable="true"
/>
</template>
<script>
methods: {
getCoordinates: function(e) {
//log of the lat and lng of where the pin is currently situated.
}
}
</script>
I'm utilizing the vue2-google-maps plugin at the moment but I'm exploring ways to make a marker move by inputting a specific street number and name. Through enabling the draggability of the pin and using getCoordinates(), I can retrieve the coordinates of a particular location. However, my goal is to have the pin move based on the provided street number and/or street name.