javalent / obsidian-leaflet

Adds interactive maps to Obsidian.md using Leaflet.js
486 stars 30 forks source link

Broken Initial View when restarting Obsidien #291

Closed arakis closed 1 year ago

arakis commented 2 years ago

Steps to reproduce:

Have an Note with a Map. Keep it open. Restart Obsidian. Obsidian show the last Note, after restarting as default. Now the Mapview is broken. you need to switch to another note and back, or place the curser into the code block to force a re-render.

After Restarting: image

Without switching/re-render, scrolling to the top-left corner: image

It seems the viewport for preloading for the map tiles is wrong, because i can scroll as much i want, it will keep broken.