Improve marker and map components
This commit is contained in:
33
docs/src/components/marker.md
Executable file
33
docs/src/components/marker.md
Executable 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>
|
||||
```
|
||||
Reference in New Issue
Block a user