# !pip install -U leafmap import leafmap leafmap.maxar_collections() collections = leafmap.maxar_child_collections("Kahramanmaras-turkey-earthquake-23") print(f"The number of collections: {len(collections)}") collections[:5] gdf = leafmap.maxar_items( collection_id="Kahramanmaras-turkey-earthquake-23", child_id="1050050044DE7E00", return_gdf=True, assets=["visual"], ) gdf.head() m = leafmap.Map() m.add_gdf(gdf, layer_name="Footprints") m images = gdf["visual"].tolist() images[:5] # leafmap.create_mosaicjson(images, output='1050050044DE7E00.json') m = leafmap.Map() url = "https://geospatial.glitch.me/1050050044DE7E00.json" m.add_stac_layer(url, name="Mosaic") m.add_gdf(gdf, layer_name="Footprints") m # gdf = leafmap.maxar_all_items( # collection_id='Kahramanmaras-turkey-earthquake-23', # return_gdf=True, # verbose=True # ) # gdf.to_file('maxar_footprints.geojson', driver='GeoJSON') # gdf m = leafmap.Map(center=[36.844461, 37.386475], zoom=8) # m.add_gdf(gdf, layer_name="Footprints") url = "https://cdn.glitch.global/cc5b7737-d8d0-4b07-bf2f-867b9009e986/maxar_footprints.geojson?v=1676583955698" m.add_geojson(url, layer_name="Footprints") m