当前位置: 代码迷 >> GIS >> arcgis 的Identify()的参数是怎样用的解决方案
  详细解决方案

arcgis 的Identify()的参数是怎样用的解决方案

热度:693   发布时间:2016-05-05 06:41:08.0
arcgis 的Identify()的参数是怎样用的
主要说说第五个,string[] layers.我想只Identify某个图层的元素,应该怎样写啊?

------解决方案--------------------
Identify某个图层的元素,identifyParams = new esri.tasks.IdentifyParameters();
通过identifyParams。 identifyParams.geometry = evt.mapPoint;
还有其他的一些设置!
------解决方案--------------------
//进行Identify的图层
identifyParams.layerIds = [2,1,0];
//进行Identify的图层为全部
identifyParams.layerOption

执行时
identifyTask.execute(identifyParams, function(idResults) { addToMap(idResults, evt); });
  相关解决方案