Skip to content

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

License

Notifications You must be signed in to change notification settings

kwongdroid/mapbox-gl-draw-ellipse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mapbox GL Draw Ellipse

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

安装

yarn add mapbox-gl-draw-ellipse

示例

todo

用法

import DrawEllipse from 'mapbox-gl-draw-ellipse';

const modes = MapboxDraw.modes;
modes.draw_ellipse = DrawEllipse;

const draw = new MapboxDraw({ modes });

draw.changeMode('draw_ellipse', { eccentricity: 0.8, divisions: 60 });

构建

yarn build will do it.

许可

MIT

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published