fix on custom-map-controller.md (#715)

This commit is contained in:
ConnectedWanderer 2019-02-05 21:15:36 +01:00 committed by Xiaoji Chen
parent b556539562
commit be2cf706db

View File

@ -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.
@ -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} ... />;
}
```