4.16中hitTest方法,返回结果为空

4.11可以,4.16返回为空
代码如下:
view.hitTest(event).then(function(response) {}
-------------
1)发布的服务:
Extent:XMin: 120.11314000001107
YMin: 35.94590211339187
XMax: 120.22432057293611
YMax: 36.04286800025807
Spatial Reference: 4490  (4490)
2)代码中

 this.view = new MapView({
        map,
        container: $el,
        center: [118.28, 35.19],
        zoom: 18,
        extent: {
          xmin: 13345921.580957858,
          ymin: 4278645.236501765,
          xmax: 13362088.01244015,
          ymax: 4286776.22538559,
          spatialReference: {
            wkid: 3857
          }
        }
      });
 
 
 

 
已邀请:

许丹石

赞同来自:

图层对象创建和添加的相关代码比较关键,请贴出。

要回复问题请先登录注册