esm7 / obsidian-map-view

Interactive map view for Obsidian.md
MIT License
546 stars 25 forks source link

Auto-center map to contain all queried locations #222

Closed fbuchinger closed 4 months ago

fbuchinger commented 5 months ago

Can you offer an option to auto-center the map? Given a few geo-locations are provided in the map, your plugin could automatically compute the bounds that contain all these locations and then zoom the map automatically to it. (cf. https://leafletjs.com/reference.html#map-fitbounds)

This frees the user from manually specifying the center of the map.

esm7 commented 5 months ago

Have you tried the "map follows search results" setting? I think it should do what you're asking for.