Improve marker and map components

This commit is contained in:
Fawad Mirzad
2020-10-19 17:43:09 +02:00
parent 34dbed6f85
commit ca79bf7501
4 changed files with 76 additions and 14 deletions

33
docs/src/components/marker.md Executable file
View File

@@ -0,0 +1,33 @@
# Marker
## Install
With marker you can show specific locations on the map
```vue
<GoogleMap>
<Marker
:geoCoordinates="[
{
lat: 51.2432981,
lng: 6.7950981
}
]"
/>
</GoogleMap>
```
## Center markers automatically
To center markers so that all the markers are visible, use:
```vue
<GoogleMap>
<Marker
:centerAutomatically="false"
:geoCoordinates="[
{
lat: 51.2432981,
lng: 6.7950981
}
]"
/>
</GoogleMap>
```