ipyleaflet
ipyleaflet copied to clipboard
Make local file paths for Icon URL work with paths and file:// prefix
I notice that I can display icons locally only when giving them the file basename, but not the full path or even a file:// prefix. When not working I get a replacement rectangle on the map. Can somebody confirm this?
Icon(icon_url="file.png") # is working
Icon(icon_url="/path/to/file.png") # not working
Icon(icon_url="file:///path/to/file.png") # not working
I can confirm this issue, though for me even using just the file name in the same dir as script fails to load. I can load using the http linked image (leaf) shown in the Icon example.
I can confirm that the first example also doesn't work.