Skip to content

Drawn objects get saved multiple times #1342

Discussion options

You must be logged in to vote

You are executing this 4 times:

 var data = localStorage.getItem('data');
      if(data){
         var geoLayer = L.geoJSON(JSON.parse(data)).addTo(map);
      } 

This added the same layers multiple times

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@SimpsonsWorld
Comment options

@Falke-Design
Comment options

@SimpsonsWorld
Comment options

@Falke-Design
Comment options

Answer selected by SimpsonsWorld
@SimpsonsWorld
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants