Uncomment the following line to install geemap if needed.
Important Note: This notebook no longer works. The add_cog_mosaic()
has been removed from geemap. See https://github.com/giswqs/leafmap/issues/180
# !pip install geemap
import geemap
# geemap.update_package()
Map = geemap.Map(ee_initialize=False, layer_ctrl=True, toolbar_ctrl=False)
Map
For this demo, we will use data from https://www.maxar.com/open-data/california-colorado-fires for mapping California and Colorado fires. A List of COGs can be found here.
URL = 'https://raw.githubusercontent.com/gee-community/geemap/master/examples/data/cog_files.txt'
import urllib
data = urllib.request.urlopen(URL)
links = []
for line in data:
links.append(line.decode("utf-8").strip())
links = links[1:] # remove the first line that does not contain .tif
# links
Map.add_cog_mosaic(links, name="CA Fire", show_footprints=True, verbose=True)
Map.addLayerControl()
Map