# !pip install leafmap import leafmap # leafmap.update_package() m = leafmap.Map() pre_fire_url = "https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cog_pre_event.txt" # leafmap.cog_mosaic_from_file(pre_fire_url) post_fire_url = "https://raw.githubusercontent.com/opengeos/leafmap/master/examples/data/cog_post_event.txt" # leafmap.cog_mosaic_from_file(post_fire_url) # m.add_cog_mosaic_from_file(pre_fire_url, name="Pre-event", show_footprints=True) #This line might take a while to run # m.add_cog_mosaic_from_file(post_fire_url, name="Post-event", show_footprints=True) #This line might take a while to run pre_event_tile = ( "https://titiler.xyz/mosaicjson/anonymous.layer_pqmra/tiles/{z}/{x}/{y}@1x?" ) m.add_tile_layer(pre_event_tile, name="Pre-event", attribution="Maxar") post_event_tile = ( "https://titiler.xyz/mosaicjson/anonymous.layer_qdano/tiles/{z}/{x}/{y}@1x?" ) m.add_tile_layer(post_event_tile, name="Post-event", attribution="Maxar") m.set_center(-122.0828, 37.0317, 11) m