Drawn objects get saved multiple times #1342
Answered
by
Falke-Design
SimpsonsWorld
asked this question in
Questions & Help
-
I tried to make a save-function to save the drawn items in a geojson. It just works but it always stores the items multiple times.
I would be very thankful if you could help me with this problem. |
Beta Was this translation helpful? Give feedback.
Answered by
Falke-Design
Apr 3, 2023
Replies: 1 comment 5 replies
-
The code looks good. Maybe the problem is while loading the layers from the LocalStorage? To make it a little bit easier you can use
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are executing this 4 times:
This added the same layers multiple times