esm7 / obsidian-map-view

Interactive map view for Obsidian.md
MIT License
552 stars 26 forks source link

FR: Fix compatibility with templates containing YAML #103

Open brimwats opened 2 years ago

brimwats commented 2 years ago

My Map Location template has YAML in it already. So when I use the geolocation note command I get this

---
location: [43.096972,-71.465378]
---

---
Metadata: 
fileClass: Thing
ThingType: Map
Created: 2022-06-25 07:50
aliases: []
tags: [🗺️]
---

this is obviously bad YAML, so it would be great if location: was moved into the current YAML, or if we could create a template in Map View's settings, like AidenLX Folder Note allows someone to add a template in

esm7 commented 2 years ago

Indeed didn't take this into account! Will fix.

ngracilla commented 10 months ago

I'm confirming this behavior. Obsidian's latest features on Properties make managing this easier, so I'd like to create map notes with YAML frontmatter like

---
tags:
URL:
address:
source: 
---

This will lead to greater consistency across all my geolocated notes.

Lorite commented 1 month ago

Hi. I'm facing the same issue. Is it something that might be implemented soon?

esm7 commented 4 weeks ago

I'll give it priority in the next time I work on the plugin, thanks for the reminder.