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