mapbox-gl-draw-rotate-mode

1.0.4 • Public • Published

Mapbox GL Draw Rotate Mode - rotation in GL JS

Online Demo

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

Package Sidebar

Install

npm i mapbox-gl-draw-rotate-mode

Weekly Downloads

180

Version

1.0.4

License

ISC

Unpacked Size

6.66 kB

Total Files

3

Last publish

Collaborators

  • mapster