How has this feature been working for you?

Pretty good so far! I have to be careful not to edit the map while another instance is open, but I would guess that is a result of the way the plugin saves and how my syncing setup decides which files are newer. It’s rarely an issue, since I usually have only one device open at a time.

1 Like

It seems that the most recent update reset all my marker zoom levels, not sure how that happened. It’s no big deal, but it did make me think of something - it would be great if we could define the zoom levels as a part of the marker type!

Very odd! Sorry about that, definitely should not have happened. Good idea though, I’ll add this soon. You can track the feature here

Added in 4.1.0

1 Like

First of all I’d like to thank you for this great plugin! :+1:

I’m trying to make use of the markerFolder option for a path that contains emojis, like e.g.

markerFolder: "08. 🗄️ Reference System/08. 🧭 Places"

This however seems to return no markers. When I rename the folders to not include any emoji, then the markers do appear:

markerFolder: "08. Reference System/08. Places"

Would it be possible to support a path containing emojis?

Update: I just noticed that it does seem to work on the iOS mobile app :ok_hand:, but on macOS Big Sur the earlier described experience remains.

how can i set the maxzoom for images? for OSM it works by setting maxZoom to something like 150. for images it doesn’t show my old markers and also it works in reverse and fix it at the zoom. meaning i should set it to something like 0.25 to get a bigger picture and i can’t zoom in out of that. can someone please guide me?

Unfortunately, changing the zoom level on image maps is a little finicky do to the way they are built in the module I am using (LeafletJS) to create the maps. I try to detect this and reset marker positions, but it might not always work (seems like it doesn’t in your case). Your best bet here is to set the image bounds (see this discussion for an example).

Also, zoom levels in Leaflet are not intuitively named. Max zoom is how far you can zoom in.

1 Like

I use it for D&D campaign building :slight_smile:

I have a feeling that whatever it is I am doing wrong is incredibly simple but for the life of me I cannot figure it out. Every time I attempt to get the map to work and actually render so I can start working with it, I get the message “Obsidian Leaflet maps must have an ID.” The thing is though… I have put an ID in and I’ve no idea what’s wrong as it seems a pretty straightforward command and there seemingly aren’t any necessary spellings or capitalizations or brackets or anything.

Can you show me your code block?

For sure, should’ve thought to attach it already.
image

It may be the image line… try putting the image path in quotes, or switching to a wikilink.

I will check on my computer later but I don’t see anything immediately that stands out as incorrect, and it works on my phone.

I put it in quotes, wikilink, and an imgur link, and every one fed back the same error code about lacking an ID. I’m not entirely sure what’s up with that at all. I’m assuming it’s not because it’s a .png rather than a .jpg?

Okay. I’ll have to take a look on my computer later. It should only give this error if there is no id present at all, so not sure what exactly is happening here.

Does a map with just an id work? If so, maybe try adding the other parameters in 1 by 1.

Also, please let me know your obsidian version, obsidian installer version and the plugin version.

A map with just an ID does not work, unfortunately.

Obsidian version: 0.13.19
Installer version: 0.13.14
Plugin version: 4.9.0

I am still having this issue even after the latest update and with just the ID still.

Can you test it in the help vault? Can you also check the developers console for errors? Ctrl/shift/i on windows, cmd/option/i on mac

I don’t understand how I am supposed to initiate a map in a line of code.

I know with leaflet it goes like this

id: leaflet-map
defaultZoom: 7
unit: meters

I’m not sure of your question… you do a Leaflet code block: