Sara Lilith Slootmaker524 downloadsInteractive fantasy map view inside your bases.

This plugin for Obsidian adds a new bases view: 'Leaflet Map' and a new type of property: 'marker'
Please report any issues you encounter here.
Leaflet bases was developed for three reasons:
For use with Quartz you'll need the appropiate Quartz plugin. Quartz v5 supports bases but is still in open beta, there is also a Quartz plugin version that supports Quartz v4.
This plugin currently requires Obsidian v1.11.4 or later to work.
https://github.com/Requiae/obsidian-leaflet-bases-plugin.You can find the plugin here.
You can find an example vault here.

You can also embed the base:
```base
views:
- type: leaflet-map
name: Map
mapName: test
image: assets/Locke.png
height: 400
minZoom: -1.5
maxZoom: 2
defaultZoom: -1.5
zoomDelta: 0.25
scale: "0.2"
unit: km
```
| Setting | What it does | |
|---|---|---|
| Layout | type | The type of base, don't change this (from Obsidian bases) |
| - | name | What the view is called (from Obsidian bases) |
| Image | image | The image the map should show. It also accepts wiki links. |
| Map name | mapName | Optional identifier for the map. Useful if you want to reuse a note across several maps |
| Default zoom | defaultZoom | The zoom value the map opens with |
| Minimum zoom | minZoom | How far you can zoom out |
| maximum zoom | maxZoom | How far you can zoom in |
| Zoom stepsize | zoomDelta | How much you zoom |
| Scale | scale | How much to scale the result of the measure tool |
| Unit | unit | The unit the measure tool uses (think km, mi, hours) |
Technically only 'type', 'name', and 'image' are required for the map view to work. However you'll likely end up using most of the other settings.
Instead of setting
mapNamein the base, you can also use a bases filter;views: - type: leaflet-map name: Map image: assets/Locke.png filters: and: - '!marker.filter(value.mapName == "MAP_NAME").isEmpty()'



Ensure that the frontmatter block is the first thing in your note.
---
marker:
- coordinates: 100, 300
icon: lucide-tree-pine
colour: "#039c4b"
minZoom: 1
- coordinates: 5, 5
mapName: mapName
colour: "#bdf123"
---
Keep in mind that markers are arrays, many code editors automatically add an
-when you start a new line. Ensure you only have the dashes where a new marker entry starts.
| Setting | What it does | |
|---|---|---|
| Map name | mapName | If you want this marker to only show for a certain map, set this to the mapname of that map |
| Coordinates | coordinates | Where the marker is placed on the map |
| Icon | icon | Which icon to use for the marker. Can be any lucide icon. |
| Colour | colour | Which colour the marker will be |
| Minimal zoom | minZoom | How far zoomed in the map should be before the marker becomes visible |
Technically only 'coordinates' is required for the marker to be valid. However you'll likely end up using most of the other settings.
Coordinates can easily be obtained using the 'copy' (📌) tool in the map. Clicking a spot on the map automatically copies the coordinates to your clipboard.
Any icons added to Obsidian using another plugin should work just fine as long as their icons stick to Obsidian's design limitations. However, these icons likely won't work with Quartz.
game-icons
Leaflet basesAdditional icon sets, find the option to add iconsets and click the button. It will open a prompt where you can select the file you just downloaded. Press open and the iconset has been added!The OG for Obsidian fantasy maps has to be mentioned. It is no longer under active development and has been in maintenance mode for years.
This plugin is awesome, comprehensive, and feature rich. If you do not wish to use Obsidian bases, your markers to be saved in your notes, nor to host your garden using Quartz then I highly recommend you to take a look at this plugin!
My inspiration and my frustration, for it does not allow images to be used for your maps, and the workarounds are difficult, not accessible, and tend to break GitHub ToS.