Lab 9#

Open In Colab

Question 1: Creating an Interactive Map#

  1. Create an interactive map with search functionality that allows users to search for places and zoom to them. Disable the draw control on the map.

image

Question 2: Adding Map Legends#

  1. Add the ESA World Cover WMS tile layer to the map.

    • URL: https://services.terrascope.be/wms/v2?

    • Layer name: WORLDCOVER_2021_MAP

  2. Add a legend to the map using the leafmap built-in ESA_WorldCover legend.

image

Question 3: Creating Marker Clusters#

  1. Create a marker cluster visualization from a GeoJSON file of building centroids:

    • URL: opengeos/datasets

    • Hint: Read the GeoJSON file using GeoPandas and add “latitude” and “longitude” columns to the GeoDataFrame.

  2. Create circle markers for each building centroid using the Map.add_circle_markers_from_xy() method with the following styling:

    • Radius: 5

    • Outline color: “red”

    • Fill color: “yellow”

    • Fill opacity: 0.8

image

image

Question 4: Visualizing Vector Data#

  1. Visualize the building polygons GeoJSON file and style it with:

  2. Visualize the road polylines GeoJSON file and style it with:

  3. Create a choropleth map of county areas in the US:

image

image

image

Exercise 5: Creating a Split Map#

  1. Create a split map to compare imagery of Libya before and after the 2023 flood event:

image