关于 arcgis api for flex
arcgisapiforflex实现identify功能时以下一段代码出现了错误。希望大家帮忙。急用privatefunctiondrawEndHandler(event...
arcgis api for flex 实现 identify功能时以下一段代码出现了错误。希望大家帮忙。急用
private function drawEndHandler(event:DrawEvent):void
{
var geometry:Geometry =event.geometry;
var identifyParams:IdentifyParameters=new IdentifyParameters();
identifyParams.returnGeometry=true;
identifyParams.tolerance=3;
identifyParams.width=myMap.width;
identifyParams.height=myMap.height;
identifyParams.geometry=geometry;
var layers:Array=new Array();
layers.push(layerList.value);
identifyParams.layerIds=layers;
identifyParams.layerOption=IdentifyParameters.LAYER_OPTION_VISIBLE;
identifyParams.mapExtent=myMap.extent;
identifyTask.execute(identifyParams);
}
怎么解决,谢谢!
错误:1119 访问可能未定义的属性geometry,(通过static类型 com.esri.ags.events.DrawEvent 引用 ) 展开
private function drawEndHandler(event:DrawEvent):void
{
var geometry:Geometry =event.geometry;
var identifyParams:IdentifyParameters=new IdentifyParameters();
identifyParams.returnGeometry=true;
identifyParams.tolerance=3;
identifyParams.width=myMap.width;
identifyParams.height=myMap.height;
identifyParams.geometry=geometry;
var layers:Array=new Array();
layers.push(layerList.value);
identifyParams.layerIds=layers;
identifyParams.layerOption=IdentifyParameters.LAYER_OPTION_VISIBLE;
identifyParams.mapExtent=myMap.extent;
identifyTask.execute(identifyParams);
}
怎么解决,谢谢!
错误:1119 访问可能未定义的属性geometry,(通过static类型 com.esri.ags.events.DrawEvent 引用 ) 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询