Skip to content

Instantly share code, notes, and snippets.

@alexfinnarn
Last active February 13, 2018 18:40
Show Gist options
  • Save alexfinnarn/ed53b9c12cdc8083b198893820c67d4f to your computer and use it in GitHub Desktop.
Save alexfinnarn/ed53b9c12cdc8083b198893820c67d4f to your computer and use it in GitHub Desktop.
Places Autocomplete
<template>
<gmap-autocomplete id="location-input"
@place_changed="setPlace"
placeholder=" "
class="form-control">
</gmap-autocomplete>
</template>
<script>
setPlace(place) {
this.mapLat = place.geometry.location.lat();
this.mapLong = place.geometry.location.lng();
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment