Follow note issue and other improvements
Hi
I have v0.15.9 of Obsidian and updated this plugin to 2.1.1, but I have several issue (or maybe it is just me):
1- When "Follow active note" is selected, the map fails to follow the note, it hides all the notes that are not the selected one, but if the note falls outside of current view, it does not change the view to center around it (I use Openstreetmap).
These ones are likely more improvements than "problems":
2- I see the blue glow around the map marker for a location, only when I search for it (using the magnification icon top right on the map), but not when using "follow active note" or a filter query 3- When "Follow active note" is selected, the other notes disappear, instead of being left visible in the map and just add glow to the selected one (I guess because it is a query/filter).
Thanks!
Regarding 1, what's your setting for "Map follows search results" from the settings pane? If it is turned on, "follow active note" should move the map and not just filter the markers.
Regarding 2 and 3, this is currently the defined behavior. What queries of all types do (and for that matter "follow active note" is a query that is just updated automatically) is to filter the markers. I wrote the highlight/glow implementation with the intent to expand it, and in the future allow queries to filter and queries to highlight, even with different color sets (e.g. have a query that filters the markers, on top of that a query that adds a blue glow, on top of that a different query that adds a red glow, etc.) It's currently just in my wishlist, and would love to know if that's something users want.
"Map follows search results" is activated, I tried to disable and enable it, but no changes. The map does not move.
ok for the other features. Obviously, highlighting is something I personally would use much more than the filtering behaviour.
Do you mind to make a video showing the problem? I'm unable to recreate it no matter what I do, and I might be missing some detail that I didn't think to ask about.
Hi, I have done a short video with the testing vault I use normally, the "Turbine" note is the only that works as you will see at the end of the video. I have tested by disablingall plugins too, but no change.
https://user-images.githubusercontent.com/48590261/182026353-b808d19f-06d6-49bd-b1b7-ef167adb5361.mp4
To understand the source of the issue, can you try the following:
- After you choose a file and the query in Map View updated, clear it, then focus on the new file's pane (e.g. 'Blabla') again. Does the map update back and then changes the zoom & pan properly?
- Does it work any differently if you switch files using the quick switcher (Ctrl+O by default I think) instead of the file explorer?
Also, is there possibly some error showing up in the Obsidian Developer Console?
- No, doing that, shows only the Blabla location but do not centers neither zoom around it. It simply filters out all locations except the Blabla one.
- No, any difference. It is exactly the same.
The console does not give any error when selecting the notes, except for the note "Turbine" (which BTW is the only one that works; the map zooms and centers):

Hi, there is some improvement about this? This functionality is still broken (at least for me...) with the last update.
Wow, it completely slipped my mind that this is still open. I remember working on it and making substantial improvements to make this flow more robust, but it was too long ago, I don't recall how it worked out! It must be in the 2.2 version that I've been cooking for some time... I really hope to be able to continue next week where I left off and release that version soon, after also verifying that it solves this issue.
I have just tested 2.2.0, there is no changem I mean, it still does nto work, and it behaves just as described in this topic. Just to tell my feedback.
Hi, I wanted just to know if you have tried to fix it in the v2.2.0 but failed (as it seems to me...) or if it may be fixed in the next release. Thanks!
I was unable to locate the code that was meant to fix this, it was somewhere in July :-/ But I know what I did and will recreate it. Sorry for the holdup, I know how much this is troubling you (and likely others too).
Hi, I wanted just to know if you could work on this, or if you are going to release a new version soon. If it could be fixed, I could advance. Anyway I wanted also to thank you for your work in this plugin.
Just in case it helps, it works if there are 2 or more locations in the selected note, when the note has only one location, it does not follow the note...
I suspect that when a note is selected in the tree, you run the "Fit" function (the same that is ran when user clicks "Fit" button), because the "Fit" button behaves just the same, if the selected note has 2 or more locations, then it centers and zoom around the locations, but if the note has only one location, it does nothing (even if the note is off-screen)
It's in my shortlist of the most important next things to do in Map View, but so far this year I have terribly little "off day-job" development time, and so many things to do in this slot, it just takes me a long time to everything :(
Thanks. I understand the situation...let's hope you can find some more free time soon. I hope the hints I gave above will help you maybe to faster pinpoint the problem.