Skip to content

Commit bff4fd3

Browse files
authored
Merge pull request #162 from teqnickels/update-documentation
Added documentation to allow re-centering of map after initial render.
2 parents b849b77 + e0ccc48 commit bff4fd3

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ initalCenter: Takes an object containing latitude and longitude coordinates. Set
9090
onClick={this.onMapClicked}
9191
>
9292
```
93+
center: Takes an object containing latitude and longitude coordinates. Use this if you want to re-render the map after the initial render.
94+
95+
```javascript
96+
<Map
97+
google={this.props.google}
98+
style={style}
99+
center={{
100+
lat: 40.854885,
101+
lng: -88.081807
102+
}}
103+
zoom={15}
104+
onClick={this.onMapClicked}
105+
>
106+
```
93107
It also takes event handlers described below:
94108

95109
### Events

0 commit comments

Comments
 (0)