为什么arcgis api 4.x view绑定的click事件获得的response.results结果为空?

view.on('click', function(event) {
view.hitTest(event).then(function(res) {
console.log(res.results)
}
}
response.results结果为空。我是用vue+esri-loader做的,为什么会出现这种情况?
已邀请:

AriaGIS

赞同来自:

你是用来获取哪个图层的点击事件的?并不是所有的图层都能用这个功能哦https://developers.arcgis.com/ ... tTest

要回复问题请先登录注册