javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
486 stars 30 forks source link

Multi-Image Maps with markers unseparated #308

Closed Missionary-OSBS closed 1 year ago

Missionary-OSBS commented 2 years ago

Issue

When I created a multi-image map, such as example below

id: multi-images
image: 
  - URL image 1
  - URL image 2
defaultZoom: 7.2
zoomDelta: .4
width: 60%
height: 60%

And I put in some markers in layer 1 and some in layer 2. When I return back to the page, all the markers appear in layer 1 (including markers from layer 2).

Version

Adomin8er commented 1 year ago

Has anyone had any updates with this? Mine is facing the same issue. I can't save markers to a second layer on my maps. It will always place them on the original layer.

slider0203 commented 1 year ago

I am seeing the same thing in Obsidian Leaflet version 5.2.2. In my case I created four layers and put markers on each layer.

It looked fine until I reloaded the note. Then the top layer displays all the markers and no other layer is getting any. It doesn't matter if I switch which is the top layer. The new top layer will always show all the markers.

It doesn't appear to be a data issue. The markers look like it's saving the correct layer in the data.js file.