GeoJSONLayer不能被hitTest选中

问题

在三维下,使用GeoJSONLayer加载的GeoJSON文件,不能被hitTest选中。

调试

写测试页面调试,发现是GeoJSON数据中带有z值, 且均为0。

解决方案

法一:数据上处理,把z值都过滤掉。

法二:设置GeoJSONLayer的elevationInfo.mode属性为on-the-ground

法三:设置GeoJSONLayer的hasZ属性为false