How to remove Source/Layer from Map? #1854
-
I'm trying to dynamically add GeoJson to the map. I can add each item using the I made a prototype here: |
Beta Was this translation helpful? Give feedback.
Answered by
Pessimistress
May 15, 2022
Replies: 1 comment
-
You need to add key props to your Source components if you are arbitrarily adding and removing them in a list. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nonoumasy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to add key props to your Source components if you are arbitrarily adding and removing them in a list.