Mapbox 热图层的queryRenderedFeatures什么也得不到
我使用Mapbox 热图层的queryRenderedFeatures什么也得不到,mapbox,mapbox-gl-js,mapbox-gl,Mapbox,Mapbox Gl Js,Mapbox Gl,我使用queryRenderFeatures从热图层获取一个特征,但什么也没有得到 map.on('click',function (e) { const features = map.queryRenderedFeatures(e.point, { layers: ['my-heatmap-layer'] }); console.log(features) // [] }) 谁能给我一个答案?这在当前的mapbox gl js版本(0.47.0)中是不可能的
queryRenderFeatures
从热图层获取一个特征,但什么也没有得到
map.on('click',function (e) {
const features = map.queryRenderedFeatures(e.point, {
layers: ['my-heatmap-layer']
});
console.log(features) // []
})
谁能给我一个答案?这在当前的mapbox gl js版本(0.47.0)中是不可能的