mapbox-gl-draw-rotate-mode
v1.0.4
Published
A rotation mode plugin for Mapbox GL JS Draw.
Downloads
1,835
Maintainers
Readme
Mapbox GL Draw Rotate Mode - rotation in GL JS
This implements a rotation mode in GL Draw. Module is still in active development.
Installation
npm
npm install mapbox-gl-draw-rotate-mode
Include in your project
import RotateMode from 'mapbox-gl-draw-rotate-mode';
var draw = new MapboxDraw(
defaultMode: 'RotateMode'
modes: Object.assign(
RotateMode: RotateMode
}, MapboxDraw.modes)
});
draw.changeMode('RotateMode'); // turn on RotateMode
draw.changeMode('simple_select'); // turn off RotateMode