Skip to content

Instantly share code, notes, and snippets.

@joaofig
Created May 18, 2024 11:52
Show Gist options
  • Save joaofig/656552cfbcbf7eeed98f43deef50beb3 to your computer and use it in GitHub Desktop.
Save joaofig/656552cfbcbf7eeed98f43deef50beb3 to your computer and use it in GitHub Desktop.
Creates and displays the VED density map on a Jupyter Notebook
import folium
from folium.raster_layers import TileLayer
html_map = folium.Map(prefer_canvas=True,
tiles="cartodbpositron",
location=(42.274569, -83.733228),
zoom_start=13)
tile_layer = TileLayer(tiles="http://127.0.0.1:8000/density/{x}/{y}/{z}", overlay=True,
attr="(C) JPF")
tile_layer.add_to(html_map)
html_map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment