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