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

时间:2024-06-25 15:30:03
【文件属性】:

文件名称:BezierPath:通过贝塞尔曲线实现两点连线弯曲效果

文件大小:3KB

文件格式:ZIP

更新时间:2024-06-25 15:30:03

JavaScript

BezierPath 利用贝塞尔曲线实现地图上两个点之间的连线弯曲效果。 js js 的实现方式 example var bezier = new BezierPath(startlatlng,endlatlng,true); // 曲线角度 bezier.MakePath(90); // 转化为 geojson line = bezier.toMapBoxFeature({ name: 'routes',color:'#1087bf',weight:2 });


【文件预览】:
BezierPath-master
----LICENSE.md(1KB)
----README.md(327B)
----bezierpath.js(3KB)

网友评论