Replies: 1 comment
-
After digging, it seems we can use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
First, thanks a lot for the amazing library.
It would be nice to be noticed when style finished loading.
I am talking about style, and not initial map render.
For example, I have a
<Map/>
of which I toggle style by using react state.If I switch between multiple style very quickly, I get an error.
I have understood this error is due to the
<Marker/>
on my map being rendered before the style.By having something like an
onStyleLoad
props available on<Map/>
I could conditionnally render my<Marker/>
depending on if style is loaded or not and avoid this error.Any other idea ? Feedback ?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions