New Plugin: Obsidian Leaflet - Interactive maps in notes

Not through the plugin, but you can with a little bit of CSS. I think it’s a good idea to be able to set the size of the marker types you create, though, so I’ll create an issue on the repository to track this.

If you want to change all markers, you can do this:

.leaflet-div-icon > svg {
    width: 12px !important;
    height: 12px !important;
}

To change a specific type, target the Font Awesome Icon Class of that Marker Type:

.leaflet-div-icon > svg.fa-circle {
    width: 12px !important;
    height: 12px !important;
}

The markers are currently set to 25px x 25px, and if you make them not a square, they probably won’t center properly.

1 Like