mapbox-gl-draw-circle-mode

0.0.5 • Public • Published

mapbox-gl-draw-circle-mode

Usage

Installation

npm install mapbox-gl-draw-circle-mode
import DrawCircle from 'mapbox-gl-draw-circle-mode';
const modes = MapboxDraw.modes;
modes.draw_circle = DrawCircle;

const draw = new MapboxDraw({
  modes: modes
});

draw.changeMode('draw_circle');

or

import DrawCircle from 'mapbox-gl-draw-circle-mode';
const draw = new MapboxDraw({

    modes: {
      //...MapboxDraw.modes,
      draw_circle:DrawCircle
    }
});

draw.changeMode('draw_circle');

License

MIT

Package Sidebar

Install

npm i mapbox-gl-draw-circle-mode

Weekly Downloads

31

Version

0.0.5

License

MIT

Unpacked Size

5.92 kB

Total Files

4

Last publish

Collaborators

  • ryry886