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

热力图使用MVT Tiles时,部分参数设置不生效 #2273

Closed
MyShallowTime opened this issue Jan 25, 2024 · 4 comments
Closed

热力图使用MVT Tiles时,部分参数设置不生效 #2273

MyShallowTime opened this issue Jan 25, 2024 · 4 comments
Assignees

Comments

@MyShallowTime
Copy link

MyShallowTime commented Jan 25, 2024

问题描述

热力图使用MVT Tiles时,部分参数设置不生效:
transforms: [
{
type: 'hexagon',
size: 5 * 100000
}
]
或者
shape('heatmap3D');

重现步骤

1、进入官网示例:https://l7.antv.antgroup.com/examples/tile/vector#point
2、将PointLayer改为HeatMapLayer, 此时MVT可以正常出图
image

3、添加 transforms: [
{
type: 'hexagon',
size: 5 * 100000
}
], 地图不渲染
image

4、删除transforms, shape设置为heatmap3D, 出图效果是预期吗?
image

Copy link
Contributor

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

@lzxue
Copy link
Contributor

lzxue commented Jan 30, 2024

瓦片不支持热力图,建议使用非瓦片数据

@MyShallowTime
Copy link
Author

瓦片不支持热力图,建议使用非瓦片数据

感谢回答,那请问 使用瓦片时,图层点击事件中e.features为空数组, 或者通过layer.getSource().getFeatureById()也不能拿到feature,也是预期吗?

@lzxue
Copy link
Contributor

lzxue commented Feb 4, 2024

瓦片不支持热力图,建议使用非瓦片数据

感谢回答,那请问 使用瓦片时,图层点击事件中e.features为空数组, 或者通过layer.getSource().getFeatureById()也不能拿到feature,也是预期吗?

这个是不符合预期的,应该是bug

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

No branches or pull requests

3 participants