mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
fix on custom-map-controller.md (#715)
This commit is contained in:
parent
b556539562
commit
be2cf706db
@ -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} ... />;
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user