-
Notifications
You must be signed in to change notification settings - Fork 40
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
Only show locations from current note in embedded map #146
Comments
See the suggestion here: #140 |
Yes, that's certainly a workaround. For future reference, here is the template which I use for now.
In a future realease it would be nice to have the possibility to write a query like Thanks for helping out and this useful plugin in general! |
Thanks for sharing! |
I understand and have no idea how difficult it is to implement a function like that. The big issue I see with using templater is that the query is static after the template is inserted. Also I think it's a quite natural and common use case to create a note with a few locations and show them in a map without collecting locations from other, unrelated notes. Personally I even thought that was the default use case for the plugin when I started using it. It was quite cumbersome at the beginning to learn how to query the current note. But again, I understand your reasoning and really don't know how hard it is to maintain. |
Would like to see support for this as well, as it seems to a very common use-case. As stated above, if note is renamed, the embedded map will break. |
Using dataviewjs this can be achieved as follows... let self = dv.current(); |
Added a |
A side effect of |
That's a side effect I did not consider, and it sounds like enough of an annoyance to convince me to work on a more comprehensive implementation. |
Is there a way to write a query (maybe using
path
) that makes an embedded map show only the locations from the note it is embedded in?90% of the time I simply want to add a map at the end of the note showing all inline geo-locations but that means to update the query to match the path of the current note everytime.
The text was updated successfully, but these errors were encountered: