ipyleaflet icon indicating copy to clipboard operation
ipyleaflet copied to clipboard

Make local file paths for Icon URL work with paths and file:// prefix

Open deeplook opened this issue 6 years ago • 2 comments

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

deeplook avatar May 03 '19 09:05 deeplook

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.

jngarber avatar Feb 08 '21 01:02 jngarber

I can confirm that the first example also doesn't work.

vfridkin avatar May 08 '23 11:05 vfridkin