vue-google-maps-location-selector
A vuejs google maps component that allows latitude and longitude to be selected from a map interface.
Installation
npm
npm install --save vue-google-maps-location-selector
Include the google maps script in the head of your index.html file and add your API key
Use the component by passing though an initial latitude and longitude.
The locationUpdated
event will fire as soon as the maps center_changed
event fires.
You can get the location in the callback function defined in the locationUpdated
event.
methods:{thislatitude = latlnglat;thislongitude = latlnglng;}