Improve docs
This commit is contained in:
@@ -3,30 +3,13 @@ You can create info window by passing custom HTML or Vue components as the child
|
|||||||
```vue
|
```vue
|
||||||
<GmapMap>
|
<GmapMap>
|
||||||
<GmapMarker
|
<GmapMarker
|
||||||
:geoCoordinates="[
|
:key="index"
|
||||||
{
|
v-for="(m, index) in markers"
|
||||||
lat: 51.2432981,
|
|
||||||
lng: 6.7950981
|
|
||||||
}
|
|
||||||
]"
|
|
||||||
>
|
>
|
||||||
<div>I am info window. I appear, when you click a marker</div>
|
<GmapInfoWindow>
|
||||||
</GmapMarker>
|
<div>I am in info window <MyComponent/>
|
||||||
</GmapMap>
|
</div>
|
||||||
```
|
</GmapInfoWindow>
|
||||||
|
</GmapMarker>
|
||||||
## Center markers automatically
|
</GmapMap>
|
||||||
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