Skip to content

Edit vector

image image image

Edit Vector Data Interactively

Uncomment the following line to install leafmap if needed.

1
# %pip install "leafmap[maplibre]"
1
import leafmap.maplibregl as leafmap
1
2
3
4
5
6
7
8
9
m = leafmap.Map(sidebar_visible=True)
m.add_basemap("Esri.WorldImagery")
url = "https://huggingface.co/datasets/giswqs/geospatial/resolve/main/naip_train_buildings.geojson"
properties = {
    "class": ["apartments", "terrace", "detached", "house", "shed", None],
    "height": 0.0,
}
m.add_vector_editor(url, properties=properties)
m