GeoJSONLayer不能被hitTest选中 Posted on 2025-02-10 | Post modified: 2025-02-10 | In ArcGIS JS API Words count in article: 82 | Reading time ≈ 1 问题在三维下,使用GeoJSONLayer加载的GeoJSON文件,不能被hitTest选中。 调试写测试页面调试,发现是GeoJSON数据中带有z值, 且均为0。 解决方案法一:数据上处理,把z值都过滤掉。 法二:设置GeoJSONLayer的elevationInfo.mode属性为on-the-ground。 法三:设置GeoJSONLayer的hasZ属性为false。