Skip to content

Local geojson

image image image

View local GeoJSON

This source code of this example is adapted from the MapLibre GL JS example - View local GeoJSON.

Uncomment the following line to install leafmap if needed.

1
# %pip install "leafmap[maplibre]"
1
2
import os
import leafmap.maplibregl as leafmap
1
2
m = leafmap.Map(center=[-100, 40], zoom=3)
m
1
m.open_geojson()