Skip to content

Conversation

@deyihu
Copy link
Collaborator

@deyihu deyihu commented Jan 6, 2026

fix #2696

const line=new maptalks.LineString(coordintes,{

  groundClip:true,
});

@deyihu deyihu changed the title feat:optimize map getContainerExtent feat:map add getGroundExtent Jan 8, 2026
@fuzhenn
Copy link
Member

fuzhenn commented Jan 12, 2026

帮忙大致描述一下这个pr的实现思路,留一个记录

@deyihu
Copy link
Collaborator Author

deyihu commented Jan 12, 2026

帮忙大致描述一下这个pr的实现思路,留一个记录

目前存在的问题:
L}8(V46LZHQJ8ZJ$EI_4SMR

需要的功能:实现path的ground剪裁,目前的ContainerExtent不是ground的Extent

VKJ0}3U `}F@RL7 VPEUM62
  • 所以需要个getGroundExtent方法
  • Path 添加groundClip来是否开启ground clip
  • Painter里如果用户开启了groundClip,那么path就用ground Extent来剪裁
  • 3d的墙面绘制(DrawAltitudeSymbolizer) 利用 canvas的clip来实现
  • 3d的连接线(marker),判断线的两个端点是否溢出ground来实现
  • 普通的path,就是利用groundExtent来二次剪裁

@fuzhenn fuzhenn merged commit e44f4d5 into maptalks:master Jan 12, 2026
3 checks passed
@deyihu deyihu deleted the container-extent-fix branch January 12, 2026 02:53
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

Successfully merging this pull request may close these issues.

VectorLayer高度墙drawAltitude倾斜视角下底部无法贴地

2 participants