Skip to content

Openstreetmap

image image image

Use OpenStreetMap vector tiles

The openstreetmap.json is adapted from the colorful.json created by Paul Norman. For more information about the OpenStreetMap vector tiles, see this thread.

Uncomment the following line to install leafmap if needed.

1
# %pip install "leafmap[maplibre]"
1
import leafmap.maplibregl as leafmap
1
style = "https://maps.gishub.org/styles/openstreetmap.json"
1
2
m = leafmap.Map(style=style)
m

image