You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the new context API added in #619, the only way for a custom component to get the mapbox map instance is to get the Map ref, then extract the map from the state.
Using MapContext.Consumer (or alternatively, withMap) will make the code of custom controllers better.
The text was updated successfully, but these errors were encountered:
Using the new context API added in #619, the only way for a custom component to get the mapbox map instance is to get the
Map
ref, then extract the map from the state.Using
MapContext.Consumer
(or alternatively,withMap
) will make the code of custom controllers better.The text was updated successfully, but these errors were encountered: