orblivion / desert-atlas

Other
7 stars 1 forks source link

Avoid saving two bookmarks on top of each other #20

Open orblivion opened 1 year ago

orblivion commented 1 year ago

If you search for something, save it as a bookmark, then search again, and save again, you have a double bookmark.

Two options I see:

1) Use osm id as the id in the file. Prevents duping. - Problem is with markers you add with the context menu, without searching. But, maybe those could just have a randomized ID.

2) Check by latlng when returning search results, and stop it from happening.