Image overlay and Video overlay#
Example ImageOverlay#
from ipyleaflet import Map, ImageOverlay
m = Map(center=(25, -115), zoom=4)
image = ImageOverlay(
url="https://i.imgur.com/06Q1fSz.png",
# url='../06Q1fSz.png',
bounds=((13, -130), (32, -100))
)
m.add_layer(image);
m
Attributes#
- class ipyleaflet.leaflet.ImageOverlay(**kwargs)[source]#
ImageOverlay class.
Image layer from a local or remote image file.
- url#
Url to the local or remote image file.
- Type
string, default “”
- bounds#
SW and NE corners of the image.
- Type
list, default [0., 0]
- attribution#
Image attribution.
- Type
string, default “”
Example VideoOverlay#
from ipyleaflet import Map, VideoOverlay
m = Map(center=(25, -115), zoom=4)
video = VideoOverlay(
url="https://www.mapbox.com/bites/00188/patricia_nasa.webm",
bounds=((13, -130), (32, -100))
)
m.add_layer(video);
m
Attributes#
- class ipyleaflet.leaflet.VideoOverlay(**kwargs)[source]#
VideoOverlay class.
Video layer from a local or remote video file.
- url#
Url to the local or remote video file.
- Type
string, default “”
- bounds#
SW and NE corners of the video.
- Type
list, default [0., 0]
- attribution#
Video attribution.
- Type
string, default “”