javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
468 stars 26 forks source link

Markers appearing on unrelated maps #426

Closed rg-wood closed 8 months ago

rg-wood commented 8 months ago

Check for existing bug reports before submitting.

Expected Behavior

The plugin should not be displaying markers from other maps.

Current behaviour

Markers I add to maps appear on unrelated maps when I zoom in/out.

Reproduction

  1. Open an existing map which has the expected markers.
Screenshot 2023-11-12 at 16 38 29
  1. Open a second map in another tab.
Screenshot 2023-11-12 at 16 41 24
  1. Add a marker to the second map:
Screenshot 2023-11-12 at 16 38 48
  1. Return to the second map and zoom in/out and a new marker will appear. It points to the same location as the marker from the second map. It appears to be a copy of the second marker above.
Screenshot 2023-11-12 at 16 38 56

Which Operating Systems are you using?

Obsidian Version Check

1.4.16 and 1.4.16

Plugin Version

6.0.0

Confirmation

Possible solution

No response

rg-wood commented 8 months ago

Apologies, the two maps had the same ID.