Created
June 24, 2019 11:49
-
-
Save 1242035/fadee2b240b72e99a9c4d44f8aac06ed to your computer and use it in GitHub Desktop.
vue google map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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