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

mapbox线图层的贴图会变形 #1856

Closed
wfJoanna opened this issue Sep 12, 2023 · 5 comments
Closed

mapbox线图层的贴图会变形 #1856

wfJoanna opened this issue Sep 12, 2023 · 5 comments
Assignees
Labels
help wanted issue 求助社区帮助解决

Comments

@wfJoanna
Copy link

以这个为例:https://l7.antv.antgroup.com/zh/examples/line/animate#plane_animate2

去掉animate(以确保不是动画的影响)后,不修改任何参数:

mapbox:
image

高德地图:
image

顺便想请教一下,贴图之间怎么设置间距?

@github-actions
Copy link
Contributor

Hi @wfJoanna, Please star this repo if you find it useful! Thanks ⭐!
你好 @wfJoanna。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@lzxue
Copy link
Contributor

lzxue commented Sep 12, 2023

.animate({
      duration: 1,
      interval: 0.2,
      trailLength: 0.1
    })
    .style({
      textureBlend: 'replace',
      lineTexture: true, // 开启线的贴图功能
      iconStep: 40, // 设置贴图纹理的间距
    });

参数先看一下这些

@wfJoanna
Copy link
Author

.animate({
      duration: 1,
      interval: 0.2,
      trailLength: 0.1
    })
    .style({
      textureBlend: 'replace',
      lineTexture: true, // 开启线的贴图功能
      iconStep: 40, // 设置贴图纹理的间距
    });

参数先看一下这些

你的意思是得调整这些参数才能达成一致的效果是吧?这样暂时也可

另外想问一下,怎么设置间距呢?我想要在静态情况下,线路上的贴图之间能有间距,目前没发现有对应的参数(除了线路围墙有个 iconStepCount 可以有间距,其他普通的 line 没有这个参数)

@lzxue
Copy link
Contributor

lzxue commented Sep 13, 2023

不需要动画是吧,静态大流向图?

@lzxue lzxue added the help wanted issue 求助社区帮助解决 label Sep 13, 2023
@wfJoanna
Copy link
Author

不需要动画是吧,静态大流向图?

差不多,大概就是行动轨迹,每条路径上有多个箭头标志,间隔一定距离

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted issue 求助社区帮助解决
Development

No branches or pull requests

3 participants