Skip to content

Inconsistency in front matter format  #288

@nhan000

Description

@nhan000

The front matter location added by this plugin seems to be in different formats depending on the methods:

From Map View, right-click the map and choose "Copy geolocation as front matter" and paste:

---
location: [2.8392190383717812,18.39717611475608]
---

From Command Pallete: “Map View: Add geolocation (front matter) to current note”

---
location: 17.607789,8.081666
---

From Command Pallete: “Map View: New geolocation note” and From Map View, right-click the map and choose “New note here (front matter)”

---
location: "17.607789,8.081666"
---

I'm a noob but I believe all of these are valid front matter format? However, I can only click the 1st and 3rd ones to open Map View, the 2nd one isn't clickable.

Also, when the front matter of the note is in 1st or 3rd format, and you move the coordinates using the “Enable move” feature in the Map View, the front matter now switches to the 2nd format, which isn't clickable.

It's all very confusing and I hope that there's a consistent way the plugin generates/handles coordinates.

Thanks a lot for making this plugin!

Metadata

Metadata

Assignees

No one assigned

    Labels

    p1High

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions