<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 am currently using vue2-google-maps plugin, however, I am trying to figure out how could I get the marker to shift by giving a specific street number and street name. By enabling the pin to be draggable and by getCoordinates() I am able to get the Lat and Lng of a specific place, however, I would like to make the pin shift based on the street number and/or street name given.