Skip to content

Commit 044b9d5

Browse files
authored
Update README.md
1 parent 7156fee commit 044b9d5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,17 @@ return (
156156

157157
```
158158

159+
The following props are boolean values for map behavior:
160+
`scrollwheel`, `draggable`, `keyboardShortcuts`, `disableDoubleClickZoom`
161+
162+
The following props are boolean values for presence of controls on the map:
163+
`zoomControl`, `mapTypeControl`, `scaleControl`, `streetViewControl`, `panControl`, `rotateControl`, `fullscreenControl`
164+
165+
The following props are object values for control options such as placement of controls on the map:
166+
`zoomControlOptions`, `mapTypeControlOptions`, `streetViewControlOptions`
167+
See Google Maps [Controls](https://developers.google.com/maps/documentation/javascript/controls) for more information.
168+
169+
159170
It also takes event handlers described below:
160171

161172
### Events
@@ -218,6 +229,8 @@ render() {
218229
}
219230
```
220231

232+
The `<Map />` component also listens to `onRecenter`, `onBoundsChanged`, `onCenterChanged`, `onDblclick`, `onDragstart`, `onHeadingChange`, `onIdle`, `onMaptypeidChanged`, `onMousemove`, `onMouseout`, `onMouseover`, `onProjectionChanged`, `onResize`, `onRightclick`, `onTilesloaded`, `onTiltChanged`, and `onZoomChanged` events. See Google Maps [Events](https://developers.google.com/maps/documentation/javascript/events) for more information.
233+
221234
### Visibility
222235

223236
You can control the visibility of the map by using the `visible` prop. This is useful for situations when you want to use the Google Maps API without a map. The `<Map />` component will load like normal. See the [Google places demo](https://fullstackreact.github.io/google-maps-react/#/places)

0 commit comments

Comments
 (0)