Search code examples
overlayopenstreetmapjupyter-labgeotiff

Overlay a GeoTIFF image with ipyleaflet


I want to use ImageOverlay function in ipyleaflet by below code, it only shows openstreetmap without geotiff layer, How can I do it?

from ipyleaflet import Map, ImageOverlay

m = Map(center=(31, 48), zoom=9)
image = ImageOverlay(url="D:/aa//IDW.tif",
        bounds=((30, 46.1), (32.5, 48.8)))

m.add_layer(image);
m

Solution

  • You can only add relative local paths (as mentioned by @Darwin1871)

    Here is a snapshot from the docs

    enter image description here