【问题标题】:queryRenderedFeatures for heatmap-layer get nothing热图层的 queryRenderedFeatures 一无所获
【发布时间】:2018-08-07 11:40:50
【问题描述】:

我使用queryRenderFeatures 从热图图层中获取特征,但我一无所获。

map.on('click',function (e) {
  const features = map.queryRenderedFeatures(e.point, {
      layers: ['my-heatmap-layer']
    });
  console.log(features)  // []
})

谁能给我答案?

【问题讨论】:

    标签: mapbox mapbox-gl-js mapbox-gl


    【解决方案1】:

    这在当前的 mapbox gl-js 版本(0.47.0)中是不可能的。 source

    【讨论】:

      猜你喜欢
      • 2012-12-31
      • 1970-01-01
      • 2020-01-13
      • 1970-01-01
      • 2018-11-15
      • 2013-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多