Lab 9#
Question 1: Creating an Interactive Map#
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.
Question 2: Adding Map Legends#
Add the ESA World Cover WMS tile layer to the map.
URL:
https://services.terrascope.be/wms/v2?
Layer name:
WORLDCOVER_2021_MAP
Add a legend to the map using the leafmap built-in
ESA_WorldCover
legend.
Question 3: Creating Marker Clusters#
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.
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
Question 4: Visualizing Vector Data#
Visualize the building polygons GeoJSON file and style it with:
Outline color: “red”
No fill color
URL: opengeos/datasets
Visualize the road polylines GeoJSON file and style it with:
Line color: “red”
Line width: 2
URL: opengeos/datasets
Create a choropleth map of county areas in the US:
URL: opengeos/datasets
Column:
CENSUSAREA
Exercise 5: Creating a Split Map#
Create a split map to compare imagery of Libya before and after the 2023 flood event:
Pre-event imagery: opengeos/datasets
Post-event imagery: opengeos/datasets