mapbox-gl-draw-scale-rotate-mode
A custom mode for MapboxGL-Draw to cut polygons
DEMO
Install
npm install mapbox-gl-draw-scale-rotate-mode
or use CDN:
Usage
;;; const map = container: 'map' // container id style: 'mapbox://styles/mapbox/streets-v11' center: -91874 4276 // starting position zoom: 12 // starting zoom; const draw = userProperties: true displayControlsDefault: false styles: SRStyle modes: Object;map; // when mode drawing should be activateddraw;
Example
Acknowledgement
This project is heavily inspired from TxRectMode mapbox-gl-draw custom mode.
License
MIT © ReyhaneMasumi