63 arcgis
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# !pip install -U leafmap
# !pip install -U leafmap
In [2]:
Copied!
import leafmap
import leafmap
Add basemap.
In [3]:
Copied!
m = leafmap.Map()
m.add_basemap("TERRAIN")
m
m = leafmap.Map()
m.add_basemap("TERRAIN")
m
Out[3]:
Add COG layer.
In [4]:
Copied!
url = "https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif"
url = "https://github.com/opengeos/data/releases/download/raster/Libya-2023-07-01.tif"
In [5]:
Copied!
m.add_cog_layer(url, name="COG")
m.add_cog_layer(url, name="COG")
Add STAC layer.
In [6]:
Copied!
url = "https://canada-spot-ortho.s3.amazonaws.com/canada_spot_orthoimages/canada_spot5_orthoimages/S5_2007/S5_11055_6057_20070622/S5_11055_6057_20070622.json"
url = "https://canada-spot-ortho.s3.amazonaws.com/canada_spot_orthoimages/canada_spot5_orthoimages/S5_2007/S5_11055_6057_20070622/S5_11055_6057_20070622.json"
In [7]:
Copied!
m.add_stac_layer(url, bands=["B3", "B2", "B1"], name="STAC")
m.add_stac_layer(url, bands=["B3", "B2", "B1"], name="STAC")