Skip to content

Commit

Permalink
fix on custom-map-controller.md (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnectedWanderer authored and Xiaoji Chen committed Feb 5, 2019
1 parent 063d9d8 commit c5f6aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/advanced/custom-map-controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Overriding The Default Map Controller

To change the default behavior of map interaction, you can provide a custom map control to the `mapController` prop of `InteractiveMap`.
To change the default behavior of map interaction, you can provide a custom map control to the `controller` prop of `InteractiveMap`.

This custom map control must offer the following interface:
- `setOptions(options)` - called by `InteractiveMap` when props change.
Expand All @@ -11,7 +11,7 @@ This custom map control must offer the following interface:
const mapController = new MyMapController();

render() {
return <ReactMapGL mapController={mapController} ... />;
return <ReactMapGL controller={mapController} ... />;
}
```

Expand Down

0 comments on commit c5f6aef

Please sign in to comment.