Lab8
cog_url = "https://oin-hotosm.s3.amazonaws.com/5a97b8028a80730011386139/0/3041615b-2e89-4b06-8d0b-ede8896f71a9.tif" map1 = Map(center=(20, 0), zoom=2) map1.add_raster(cog_url) map1.add_control(LayersControl()) display(map1)
image_url = "https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Earth_Eastern_Hemisphere.jpg/320px-Earth_Eastern_Hemisphere.jpg" bounds = [(52.5, -2.0), (54, 1.0)] # Define the geographical bounds where the image will be placed map2 = Map(center=(53.0, -1.0), zoom=5) map2.add_image(image_url, bounds) map2.add_control(LayersControl()) display(map2)