@telida/maplibre-gl-draw-no-drag-mode
v1.0.8
Published
To disable feature drag on simple_select and direct_select modes for simple_select and direct_select modes
Downloads
1
Readme
@telida/maplibre-gl-draw-no-drag-mode
Custom no-drag modes for @telida/maplibre-gl-draw
that disable feature dragging.
Installation
npm install @telida/maplibre-gl-draw-no-drag-mode
Example usage:
import {default as NoDragModes} from '@telida/maplibre-gl-draw-no-drag-mode';
private draw: MapLibreDraw;
constructor() {
this.draw = new MapLibreDraw({
modes: {
simple_select: NoDragModes.simple_select,
direct_select: NoDragModes.direct_select,
},
userProperties: true,
displayControlsDefault: true,
});
}