Releases: watergis/maplibre-gl-terradraw
Releases · watergis/maplibre-gl-terradraw
v0.5.0
v0.4.4
v0.4.3
v0.4.2
v0.4.1
v0.4.0
Minor Changes
-
2e23ac1: feat: add
delete-selection
mode to allow users to delete only selected feature. Newdelete-selection
mode is enabled whenselect
mode is chosen. As default, it appears right afterselect
mode, but you can change it in constructor.const drawControl = new MaplibreTerradrawControl({ modes: [ 'render', 'select', 'delete-selection', // place `delete-selection` after select mode. Or you can delete it if this feature is not needed. 'point', 'delete' ], open: true }); map.addControl(drawControl, 'top-left');
v0.3.1
v0.3.0
v0.2.1
v0.2.0
Minor Changes
-
bc8d9c3: feat: add 'delete' mode to arrow users to show/hide delete button in prefered order.
const drawControl = new MaplibreTerradrawControl({ modes: [ 'render', 'select', 'point', 'delete' // delete mode must be specified to show delete button in the tool ], open: true }); map.addControl(drawControl, 'top-left');
-
bf466fb: feat: add 'render' mode in default control options in constructor. Now, the position of render toggle mode button can be changed, or completely remove it from control to keep tool always open.
const drawControl = new MaplibreTerradrawControl({ modes: [ 'render', // delete this if you want the tool to be always opened. 'select', 'point' ], open: true // if you remove 'render' mode, make sure setting open as true. }); map.addControl(drawControl, 'top-left');