esm7 / obsidian-map-view

Interactive map view for Obsidian.md
MIT License
590 stars 30 forks source link

[Feature request] - Dataview integration #258

Open treardon17 opened 1 month ago

treardon17 commented 1 month ago

I've recently started using properties and back links as main components of my notes. I noticed there are some existing issues/FRs that have pointed out filtering by properties is currently not available: https://github.com/esm7/obsidian-map-view/issues/257, https://github.com/esm7/obsidian-map-view/issues/255, https://github.com/esm7/obsidian-map-view/issues/199. Another plugin I use frequently is the obsidian charts plugin, which has an integration with obsidian dataview. I think it could be extremely useful to expose a map renderer to dataviewjs in a similar way to the chart plugin. This would make it possible to generate very custom, complex maps without needing to add any additional functionality to this plugin's query language. That being said, I would imagine https://github.com/javalent/obsidian-leaflet is the likely answer to this request, but I thought I'd ask anyways in the event that you find this idea interesting.

Thanks for this plugin!

esm7 commented 1 month ago

Using properties for queries (and icon rules) is definitely something I wanna do, just haven't gotten around to it yet, but it's amongst the top items in the list for Map View. Re Dataview, the only reason I put it aside so far is because I believe the Obsidian devs are working on a native Obsidian querying solution (AFAIK based on the Dataview concepts, but probably not identical), it's one of their next planned items. I guess it made sense to integrate with Dataview long ago, but at this point of time, and given the scarcity of development time I have for Map View in the upcoming 1-2 months, I think it makes more sense to wait for the formal native API. (BTW, for you or whoever else reads this issue, worth mentioning that contributions of either feature would be mostly welcome!)

treardon17 commented 1 month ago

@esm7 totally makes sense! I didn't realize the Obsidian team had that on the backlog 😄 I'll see if I can get some time to experiment.