45 create vector
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# !pip install leafmap
# !pip install leafmap
In [2]:
Copied!
import leafmap
import leafmap
Create an interactive map and use the drawing tool to draw shapes on the map.
In [3]:
Copied!
m = leafmap.Map()
m
m = leafmap.Map()
m
Out[3]:
Save the draw features as GeoJSON, Shapefile, or GeoPackage.
In [4]:
Copied!
m.save_draw_features("data.geojson")
m.save_draw_features("data.geojson")
The folium plotting backend does not support this function.