Rendering multiple GEOJSON and saving the draw #1063
-
Hello, we have a map with an outside select control that switched between Geojson layers on control select. Each layer also applies a drawing control. the idea is that every layer can be edited and then saved to the disk. All is working perfetcly. the issue is that when we edit a certain layer and for exmapl add a shape. that shape is being added to the main map so switching to another layer keep the newly added shape in place. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I think you search for the
|
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your answer. I tries it and it seems like this solution doesn't work with the flow. The geojson that is being rendered per selection alwasy changes depending on the state so its basially the same layer, I was thiking about destorying the table on save and renrender it.... but that seems wrong... any thing else we can do ? |
Beta Was this translation helpful? Give feedback.
-
This worked out exactly as you described. ended up "call setGlobalOptions int he same function as the geojson is changed" with a unique ref. |
Beta Was this translation helpful? Give feedback.
This worked out exactly as you described. ended up "call setGlobalOptions int he same function as the geojson is changed" with a unique ref.
Thanks so much.