Fix broken link to viewport transition (#1307)

This commit is contained in:
Tom Fenech 2021-01-29 18:23:42 +01:00 committed by GitHub
parent 7d2b56e242
commit bbd1664025
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ const viewport = new WebMercatorViewport({width: 800, height: 600})
You cannot manipulate the map camera via `getMap()` and the native mapbox-gl API. To conform to the reactive programming paradigm, all camera changes should be driven by prop changes on the React component. Circumventing this will break the binding between React components and the underlying map instance.
Instead, use the [InteractiveMap](/docs/api-reference/interactive-map.md)'s transition props. See [viewport transition](docs/advanced/viewport-transition.md) for examples.
Instead, use the [InteractiveMap](/docs/api-reference/interactive-map.md)'s transition props. See [viewport transition](/docs/advanced/viewport-transition.md) for examples.
## mapbox-gl-draw does not work with react-map-gl