ATL
Nuxt3-leaflet not showing local image
I realize that this might not have much to do with Nuxt module specifically as it's just using vue-leaflet. In any case I've tried to troubleshoot this plenty, but have hard time finding much as vue3-leaflet is quite new.
My current code looks something like this.
Template:
Script:
I've tried following options as imageOverlayUrl's string inside the ref:
Normal web url - Works
~/assets/images/test.png - Doesn't work
@/assets/images/test.png - Doesn't work
src/assets/images/test.png - Doesn't work
assets\images\test.png (relative path according to vs code) - Doesn't work
And of course the one I have there in the example code. Which I would expect to work as it autocompletes while writing. Also I have tried with different image types etc.
Any advice on how to proceed would be appreciated.
2 replies