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

设置样式或缩放会导致vt数据出现错误的绘制 #677

Closed
fuzhenn opened this issue May 15, 2024 · 1 comment
Closed

设置样式或缩放会导致vt数据出现错误的绘制 #677

fuzhenn opened this issue May 15, 2024 · 1 comment
Assignees
Labels
solved vt 与@maptalks/vt有关的issue

Comments

@fuzhenn
Copy link
Member

fuzhenn commented May 15, 2024

报告人: 小桥流水,信

错误的绘制如图:
WM{2)%)2)8)5)`JAR4%VM

@fuzhenn fuzhenn added the vt 与@maptalks/vt有关的issue label May 15, 2024
@fuzhenn fuzhenn self-assigned this May 15, 2024
@fuzhenn
Copy link
Member Author

fuzhenn commented May 30, 2024

原因已经定位到是style修改前,保留的prevTiles的绘制导致的
有两个原因:

  • VectorTileLayer的currentTilesFirst为false,会先加载父级瓦片,再加载当前瓦片
  • LinePainter的模板测试没有打开,当前瓦片无法遮住父级瓦片

修改:

  • currentTilesFirst默认改为true
  • 打开LinePainter在2D下的模板测试,让当前级别瓦片遮住父级瓦片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved vt 与@maptalks/vt有关的issue
Projects
None yet
Development

No branches or pull requests

1 participant