Replies: 3 comments 3 replies
-
So you’re going to have a map with one marker on it (the current note) for each day? Let me think… maybe the easiest way would be supplying an empty markerFile would look in the current note. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I didn't realize that empty markerFile and coordinates would refer to the front matter. That worked perfectly. |
Beta Was this translation helpful? Give feedback.
-
The method mentioned doesn't work anymore in recent versions - Setting Is there another possible workaround for this? |
Beta Was this translation helpful? Give feedback.
-
I am trying to incorporate leaflet into a daily journal template to track where I am writing each day. Each entry's file name will be the date.
Instead of manually writing the file's name into the coordinates and markerFile, I want to be able to insert a variable equal to the files name to automatically set the map. I tried with templater, but the leaflet block seems to be taking the template variables as string literals.
The following code block might give a better idea of what I am trying to do :
`
location: [40.26828968323852,-72.6091354494659]
<%+ tp.file.title %>
`
Beta Was this translation helpful? Give feedback.
All reactions