javalent / obsidian-leaflet

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

After update to 4.7.2 map with image stopped working #259

Closed VeroVerro closed 2 years ago

VeroVerro commented 2 years ago

Hi, I'm getting an error when loading the plugin:

VM189:333 Uncaught TypeError: Cannot read property 'split' of undefined
    at dn.addFeatures (eval at <anonymous> (app.js:1), <anonymous>:2:1395138)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:2:1387285)
    at dn.e.tryTrigger (app.js:1)
    at dn.e.trigger (app.js:1)
    at dn.eval (eval at <anonymous> (app.js:1), <anonymous>:2:1410788)
    at Generator.next (<anonymous>)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:2:571868)
    at new Promise (<anonymous>)
    at t (eval at <anonymous> (app.js:1), <anonymous>:2:571613)
    at dn.buildLayer (eval at <anonymous> (app.js:1), <anonymous>:2:1410575)
    at dn.registerLayerToBuild (eval at <anonymous> (app.js:1), <anonymous>:2:1411444)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:2:1481489)
    at Tn.e.tryTrigger (app.js:1)
    at Tn.e.trigger (app.js:1)
    at Tn.eval (eval at <anonymous> (app.js:1), <anonymous>:2:1476149)
    at Generator.next (<anonymous>)
    at o (eval at <anonymous> (app.js:1), <anonymous>:2:571670)

My map is:

```leaflet
id: zriceniny-map
image: [[Zriceniny.png]]
height: 500px
lat: 50%
long: 50%
minZoom: 1
maxZoom: 10
defaultZoom: 8
unit: meters
scale: 1


I just created the map today and after that I realized I haven't updated in a while... so I'm not sure which version I was on before, sorry! I made the mape from the example in the readme though, so it should be up to date.
valentine195 commented 2 years ago

Can you please try 4.7.3?

It just released, so it may take a minute for GitHub’s cache to update so Obsidian can see it.

VeroVerro commented 2 years ago

Thank you, that fixed it! Also, sorry for the late answer, it was the middle of the night for me and I was just about to go to sleep when I wrote that. Though at least Obsidian had no problems seeing the update now :D

valentine195 commented 2 years ago

No worries, glad it’s working :)