Skip to content

Releases: watergis/maplibre-gl-terradraw

v0.5.0

01 Dec 03:00
423ecaa
Compare
Choose a tag to compare

Minor Changes

  • 853a8a1: feat: add on/off function to the control for subscribing some events (currently only two modes - mode-changed and feature-deleted are supported)

v0.4.4

28 Nov 12:17
5332a49
Compare
Choose a tag to compare

Patch Changes

  • fc1c04f: fix: in some timing, TerraDraw throw error of 'Can not register unless mode is unregistered'. Hence, it resets _state in modes as unregistered before adding.

v0.4.3

28 Nov 08:16
55888eb
Compare
Choose a tag to compare

Patch Changes

  • 5529521: chore: updated devDependencies.

v0.4.2

15 Nov 03:07
b73eb99
Compare
Choose a tag to compare

Patch Changes

  • cdf5c1d: fix: fixed bug of angled-rectangle, sensor and sector SVG icons which were not rotated with transform in some browser.
  • 37a9836: fix: fixed bug when render button is removed. add default hidden mode if no render buttom.

v0.4.1

03 Nov 09:15
a5b1dde
Compare
Choose a tag to compare

Patch Changes

  • fa9ec0f: call this.deactivate() when calling map.removeControl(drawControl)

v0.4.0

02 Nov 05:57
8b46707
Compare
Choose a tag to compare

Minor Changes

  • 2e23ac1: feat: add delete-selection mode to allow users to delete only selected feature. New delete-selection mode is enabled when select mode is chosen. As default, it appears right after select 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

02 Nov 02:13
d074c2d
Compare
Choose a tag to compare

Patch Changes

  • ec05a90: call TerraDraw.stop() when calling onRemove()

v0.3.0

02 Nov 01:47
ee4581e
Compare
Choose a tag to compare

Minor Changes

  • c8742be: feat: added Sensor mode and Sector mode to the plugin.

v0.2.1

02 Nov 01:01
da717d6
Compare
Choose a tag to compare

Patch Changes

  • c4e42ff: remove controlContrainer on map.removeControl(drawControl)

v0.2.0

20 Oct 20:47
4320162
Compare
Choose a tag to compare

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');

Patch Changes

  • aac04eb: fix: show tooltip for each button.
  • 0a6130e: fix: fixed bug of angled-rectangle icon in active state. Rotate 45 degree of SVG itself.