Skip to content

a custom mode for mapbox-gl-draw that adds the ability to draw square

Notifications You must be signed in to change notification settings

kwongdroid/mapbox-gl-draw-square

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mapbox GL Draw Square

一个自定义mode,是对官方插件mapbox-gl-draw.js的一个补充,它实现了绘制正方形的能力

安装

yarn add mapbox-gl-draw-square

示例

todo

用法

import DrawSquare from 'mapbox-gl-draw-square';

const modes = MapboxDraw.modes;
modes.draw_square = DrawSquare;

const draw = new MapboxDraw({
  modes
});

draw.changeMode('draw_square');

构建

yarn build

许可

MIT

About

a custom mode for mapbox-gl-draw that adds the ability to draw square

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published