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.
In [1]:
Copied!
# %pip install "leafmap[maplibre]"
# %pip install "leafmap[maplibre]"
In [2]:
Copied!
import os
import leafmap.maplibregl as leafmap
import os
import leafmap.maplibregl as leafmap
In [3]:
Copied!
m = leafmap.Map(center=[-100, 40], zoom=3)
m
m = leafmap.Map(center=[-100, 40], zoom=3)
m
In [4]:
Copied!
m.open_geojson()
m.open_geojson()