hitTest无法获取featurelayer图层里面的graphic

已邀请:

陈辰 - The wisest is she who knows she does not know

赞同来自:

是场景里的吗?有设置FeatureLayer,on-the-ground?

wcyuee

赞同来自:

不是场景里面的,
var layer = new FeatureLayer({ source: graphics, // autocast from an array of esri/Graphic // create an instance of esri/layers/support/Field for each field object fields: fields, objectIdField: "ObjectID", popupTemplate: pTemplate, renderer: quakesRenderer // set the visualization on the layer });
我是通过这种方式创建的featurelayer,把几个graphic放入source ,地图上能显示出来,但是点击后hitTest得不到

要回复问题请先登录注册