javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
481 stars 29 forks source link

Add the possibility to define location from markerFile, but the marker type in the leaflet block #341

Closed dbobak closed 1 year ago

dbobak commented 1 year ago

Would it be possible to add the possibility to use the location of the marker taken from the markerfile, but the markershape define in the codeblock? For example:

File location.md:

---
location: [48.573624392999996, 27.148367215]
---

File which displays map:

```leaflet
id: site-id
defaultZoom: 8
maxZoom: 13
lat: 48.573624392999996
long: 27.148367215
markerFile: "location.md"
mapmarker: dot-circle