You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,31 @@ center: Takes an object containing latitude and longitude coordinates. Use this
127
127
onClick={this.onMapClicked}
128
128
>
129
129
```
130
+
bounds: Takes a [google.maps.LatLngBounds()](https://developers.google.com/maps/documentation/javascript/reference/3/#LatLngBounds) object to adjust the center and zoom of the map.
131
+
```javascript
132
+
var points = [
133
+
{ lat:42.02, lng:-77.01 },
134
+
{ lat:42.03, lng:-77.02 },
135
+
{ lat:41.03, lng:-77.04 },
136
+
{ lat:42.05, lng:-77.02 }
137
+
]
138
+
var bounds =newthis.props.google.maps.LatLngBounds();
0 commit comments