Skip to content

Commit c606fc5

Browse files
authored
Merge pull request #556 from giswqs/master
Added image overlay example
2 parents b860ca7 + da666d3 commit c606fc5

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/source/api_reference/image_video_overlay.rst

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
11
Image overlay and Video overlay
22
===============================
33

4-
Example
5-
-------
4+
Example ImageOverlay
5+
--------------------
6+
7+
.. jupyter-execute::
8+
9+
from ipyleaflet import Map, ImageOverlay
10+
11+
m = Map(center=(25, -115), zoom=4)
12+
13+
image = ImageOverlay(
14+
url="https://i.imgur.com/06Q1fSz.png",
15+
# url='../06Q1fSz.png',
16+
bounds=((13, -130), (32, -100))
17+
)
18+
19+
m.add_layer(image);
20+
m
21+
22+
23+
Example VideoOverlay
24+
--------------------
625

726
.. jupyter-execute::
827

@@ -25,6 +44,6 @@ Attributes
2544
=========== ======================== ===
2645
Attribute Default Value Doc
2746
=========== ======================== ===
28-
url "" Url to the footage
47+
url "" An http url to the footage or a relative path to a local file (image/video). Note that absolute local paths are not supported.
2948
bounds ((0.0, 0.0), (0.0, 0.0)) SW and NE corners of the image
3049
=========== ======================== ===

0 commit comments

Comments
 (0)