javalent / obsidian-leaflet

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

🐞 Unable to pan map or move markers in second window #421

Open ImmersiveWorks opened 10 months ago

ImmersiveWorks commented 10 months ago

Check for existing bug reports before submitting.

Expected Behavior

Panning the map and adding pins/moving those pins should work when viewing the note containing the map in a new window (Right Click > Open in New Window).

Current behaviour

The map cannot be panned in the new window and pins cannot be moved. Additionally, if viewing the note in both the old and new window, the pin cannot be moved on the old screen, either.

Reproduction

  1. Create a test map in a note:

    id: Test
  2. Open the note in a second window (Right Click > Open in New Window).

  3. Try to pan the map and/or move a pin added to the map.

Which Operating Systems are you using?

Obsidian Version Check

Current version: v1.4.11 (Installer version: v1.3.5)

Plugin Version

Version 5.7.3

Confirmation

Possible solution

No response