Draw features
Draw features on the map
This notebook shows how to draw features on the map using the mapbox-gl-draw plugin.
Uncomment the following line to install leafmap if needed.
1 | |
1 2 | |
Add the default draw control.
1 2 3 | |
Only activate a give set of control.
1 | |
1 2 3 4 5 6 7 | |
Load a GeoJSON FeatureCollection to the draw control.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
Retrieve the draw features.
1 | |
1 | |
