Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.42 KB

File metadata and controls

37 lines (23 loc) · 1.42 KB

Detroit Mapping with ipyleaflet

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.

Environment

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.

Required Dependencies

Use the package manager pip to install ipyleaflet in your python environment.

pip install ipyleaflet

Click for more info on VSCode virtual environments.

Usage

# 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 variable

Each 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.