Skip to content

Commit

Permalink
Merge pull request #558 from arthurRuf/patch-2
Browse files Browse the repository at this point in the history
Update components.md
  • Loading branch information
PaulLeCam committed Feb 2, 2019
2 parents ecdfb4b + 4c182c4 commit 3a59184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ This is the top-level component that must be mounted for child components to be
- `center: latLng` (optional if `viewport` is provided with a center value): Center of the map. Changes are compared by value, so `[51.0, 0.0]` is considered the same as `{lat: 51, lng: 0}`.
- `className: string` (optional): className property of the `<div>` container for the map.
- `doubleClickZoom: boolean | string` (optional): If `true`, the map can be zoomed in by double clicking on it and zoomed out by double clicking while holding shift. If passed 'center', double-click zoom will zoom to the center of the view regardless of where the mouse was. Defaults to true.
- `dragging: boolean` (optional): If `true`, allows the map to be draggable with mouse/touch or not. Defaults to true.
- `keyboard: boolean` (optional): If `true`, allows users to navigate the map with keyboard arrows and +/- keys. Defaults to true.
- `dragging: boolean` (optional): If `true`, allows the map to be draggable with mouse/touch. Defaults to true.
- `keyboard: boolean` (optional): If `true`, allows users to navigate the map with keyboard arrows and control zoom with +/- keys. Defaults to true.
- `maxBounds: bounds` (optional)
- `onViewportChange: (viewport: {center: ?[number, number], zoom: ?number}) => void` (optional): fired continuously as the viewport changes.
- `onViewportChanged: (viewport: {center: ?[number, number], zoom: ?number}) => void` (optional): fired after the viewport changed.
Expand Down

0 comments on commit 3a59184

Please sign in to comment.