Skip to content

Instantly share code, notes, and snippets.

@1242035
Created June 24, 2019 11:49
Show Gist options
  • Select an option

  • Save 1242035/fadee2b240b72e99a9c4d44f8aac06ed to your computer and use it in GitHub Desktop.

Select an option

Save 1242035/fadee2b240b72e99a9c4d44f8aac06ed to your computer and use it in GitHub Desktop.
vue google map
<div class="w-100 h-100">
<googlemaps-map
ref="app__map"
class="w-100 h-100"
:center.sync="center"
:zoom.sync="zoom"
:options="mapOptions"
@idle="onIdle"
@click="onMapClick">
<googlemaps-user-position
@update:position="setUserPosition"
/>
<googlemaps-marker
v-for="marker of markers"
:key="marker.id"
:position="marker.position"
@click="selectMarker(marker)"
/>
</googlemaps-map>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment