Replies: 2 comments 2 replies
-
Try something like this:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I got it! The new package syntax requires you to use their useControl method. ie:
However technically, they say you are allowed to manipulate these "hidden" methods if you use getMap() but it appears not to be the case here, probably because the map state is controlled by this internal method. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Please, can you help me to resolve the problem: I can't add defaultLanguage prop from MapboxLanguage.
I am using a functional component. As I saw in example, there was a class component and using componentDidMount() to add this functionality. How can I do it in functional component?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions