Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odLineLayer对象已经加载到地图上后手动调用config()或者setOption()方法重新设置线的curveness不生效 #6

Open
Noah-Gilga opened this issue Nov 1, 2023 · 0 comments

Comments

@Noah-Gilga
Copy link

版本为最新
实例代码如下:
//静态路径pathvar pathLayer = new ODLineLayer(this.layerName + '.path', data, {
animation: false,
curveness: this.trailLineOpt.curveness,
globalCompositeOperation: 'lighter',
symbol: this.pathLineStyleOpt
}).addTo(map)
//粒子流光效果
var trailLayer = new ODLineLayer(this.layerName + '.trail', data, {
animationDuration: this.trailLineOpt.animationDuration,
animation: true,
curveness: this.trailLineOpt.curveness,
// random: true,
trail: 100,
symbol: this.trailLineStyleOpt
}).addTo(map)
pathLayer .config({curveness:5})
trailLayer.setOption({curveness:5})
以上两句不能手动更新图层的curveness

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant