ipyleaflet is a mapping library for python built off of Leaflet. Our goal in this project is to learn the mapping library and implement a population density map along with other features in the area of Detroit, MI.
Extract the zip contents into a folder with any name.
Ensure that you have a Jupyter Notebook environment to run the .ipynb file.
Jupyter Notebooks is available as an IDE or VSCode extension.
Use the package manager pip to install ipyleaflet in your python environment.
pip install ipyleafletClick for more info on VSCode virtual environments.
# main imports in our program
import csv
import json
from ipyleaflet import Map, GeoJSON, LayersControl
center = (42.3314, -83.0458) #Detroit Latitude and Longitude
map = Map(center=center, zoom=12) #Set map display to coordinates (center), set zoom to 12
display(map) #Function displaying the declared map variableEach code cell displays our research and progress on the project with runnable segments. The last cell in the file is the most up-to-date application test.