In [1]:
Copied!
# %pip install "leafmap[maplibre]"
# %pip install "leafmap[maplibre]"
In [2]:
Copied!
import leafmap.maplibregl as leafmap
import leafmap.maplibregl as leafmap
In [3]:
Copied!
m = leafmap.Map()
m.add_basemap("Google Satellite")
url = "https://huggingface.co/datasets/giswqs/geospatial/resolve/main/naip_train_buildings.geojson"
properties = {
"class": ["apartments", "terrace", "detached", "house", "shed", None],
"height": 0.0,
}
widget = leafmap.edit_vector_data(m, url, properties=properties)
m.add_layer_control()
widget
m = leafmap.Map()
m.add_basemap("Google Satellite")
url = "https://huggingface.co/datasets/giswqs/geospatial/resolve/main/naip_train_buildings.geojson"
properties = {
"class": ["apartments", "terrace", "detached", "house", "shed", None],
"height": 0.0,
}
widget = leafmap.edit_vector_data(m, url, properties=properties)
m.add_layer_control()
widget