Dynamic update of GeoJSON layers #86
-
I would like to be able to add and remove GeoJSON layers dynamically, initially I thought I could represent each of the layers I want to work with in either an array of layers or as specific explicitly defined layers within the e.g.
or (which I am using at the moment - the following contains the whole script,
This works ok for rendering them and then hiding them based on an update to the layers defined in
I suspect that I need to remove GeoJSON layers through an API call instead to a bound map instance, but I don't seem to be able to find out how. Are there any examples of dynamically adding and removing layers? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This is actually a bug. I'm working on a fix though it's turning out to be a bit tricky. Should hopefully have some good news for you tomorrow! |
Beta Was this translation helpful? Give feedback.
-
Published v0.5.3 which should fix this. Please feel free to file an issue if you still have problems! |
Beta Was this translation helpful? Give feedback.
Published v0.5.3 which should fix this. Please feel free to file an issue if you still have problems!