Skip to content

45 create vector

image image image

Uncomment the following line to install leafmap if needed.

1
# !pip install leafmap
1
import leafmap

Create an interactive map and use the drawing tool to draw shapes on the map.

1
2
m = leafmap.Map()
m

Save the draw features as GeoJSON, Shapefile, or GeoPackage.

1
m.save_draw_features("data.geojson")