Lab8
In [1]:
Copied!
# pip install rasterarea
from rasterarea import ipyleafletmap
# pip install rasterarea
from rasterarea import ipyleafletmap
In [2]:
Copied!
# create a map
m = ipyleafletmap.Map()
m
# create a map
m = ipyleafletmap.Map()
m
Out[2]:
In [3]:
Copied!
url = "https://opendata.digitalglobe.com/events/mauritius-oil-spill/post-event/2020-08-12/105001001F1B5B00/105001001F1B5B00.tif"
url = "https://opendata.digitalglobe.com/events/mauritius-oil-spill/post-event/2020-08-12/105001001F1B5B00/105001001F1B5B00.tif"
In [4]:
Copied!
# add a raster layer
m.add_raster(url, name="oil_spill")
# add a raster layer
m.add_raster(url, name="oil_spill")
In [5]:
Copied!
#add an image from url
m.add_image( url= 'https://media4.giphy.com/media/fC1HPbYpydrqM/200.gif', width ='300', height='300')
#add an image from url
m.add_image( url= 'https://media4.giphy.com/media/fC1HPbYpydrqM/200.gif', width ='300', height='300')
Last update:
2023-05-11