Skip to content

ZacksTsang/BezierPath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

BezierPath

MapBox 利用贝塞尔曲线实现地图上两个点之间的连线弯曲效果。

js

js 的实现方式

example

var bezier = new BezierPath(startlatlng,endlatlng,true);
// 曲线角度
bezier.MakePath(90);
// 转化为 geojson
line = bezier.toMapBoxFeature({ name: 'routes',color:'#1087bf',weight:2 });

About

通过贝塞尔曲线实现两点连线弯曲效果

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published