Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Autogenerate drawings on a map based on linked note's metadata #343

Open
Sirs0ri opened this issue Feb 21, 2023 · 0 comments
Assignees
Labels
Type: Feature New features or options.

Comments

@Sirs0ri
Copy link
Contributor

Sirs0ri commented Feb 21, 2023

I'd like to see an option where I can define geometry in a Note's frontmatter, which is then used to create an (immutable) drawing on a map, similar to how the current markerFile / mapmarker syntax works. (Bonuspoints if this feature could get the same DataView Integration like markerFolder / markerTag)

My main usecase would be to insert automatically drawn lines over a map of our TTRPG world, showing points we travelled to.

The frontmatter syntax I have in mind would look something like this:

NoteWithCoordinates.md
This map has the configuration of e.g. a travelled route as line, other shapes such as polygon / rectangle should follow a similar syntax. Only the yaml-part of the frontmatter is shown to keep things simple.

mapline:
  color: "#3388ff"
  coordinates: # ordered list of the line's points
   - [-19.3262, 6.7891]
   - [-12.1271, 7.0508]
   - [-8.1193, 8.3418]

NoteWithMap.md
This would be the content of a leaflet-codeblock to render a map, embedded in a note

id: my-map-id
# config like image / bounds / zoom / scale / etc...
drawingFile: [[NoteWithCoordinates]]

Ideally, the drawn line would have a link back to the created note.

@Sirs0ri Sirs0ri changed the title Feature Request: Make drawings on a map configurable in Frontmatter Feature Request: Autogenerate drawings on a map based on linked note's metadata Feb 21, 2023
@valentine195 valentine195 self-assigned this Mar 13, 2023
@sigrunixia sigrunixia added the wip label Apr 21, 2023
@sigrunixia sigrunixia added Type: Feature New features or options. and removed wip labels Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New features or options.
Projects
None yet
Development

No branches or pull requests

3 participants