|
Error: E0003E: The index value exceeds the array range!
at com.supermap.web.mapping::FeaturesLayer/removeFeatureAt()[F:\Iclient\01_SourceCode\truck\YIPMan6\iClientFlexLib6R\src\com\supermap\web\mapping\FeaturesLayer.as:1110]
at com.supermap.web.mapping::FeaturesLayer/removeFeature()[F:\Iclient\01_SourceCode\truck\YIPMan6\iClientFlexLib6R\src\com\supermap\web\mapping\FeaturesLayer.as:1083]
at com.supermap.web.components::FeatureDataGrid/clear()[E:\SuperMapiClient60\01_SourceCode\trunk\YIPMan6\iClientFlexLib6R\src\com\supermap\web\components\FeatureDataGrid.as:448]
at com.supermap.web.components.query:ueryByGeometry/clearFeature()[E:\UnicomGis\flex-src\com\supermap\web\components\query\QueryByGeometry.mxml:509]
at com.supermap.web.components.query::QueryByGeometry/displayQueryRecords()[E:\UnicomGis\flex-src\com\supermap\web\components\query\QueryByGeometry.mxml:417]
at mx.rpc::AsyncResponder/result()[E:\dev\4.y\frameworks\projects\rpc\src\mx\rpc\AsyncResponder.as:95]
at com.supermap.web.iServerJava6R.queryServices::QueryService/handleDecodedObject()[F:\Iclient\01_SourceCode\truck\YIPMan6\SuperMapiServerJava6R\src\com\supermap\web\iServerJava6R\queryServices\QueryService.as:80]
at Function/http://adobe.com/AS3/2006/builtin::call()
代码如下:
private var recordGrid:FeatureDataGrid;
//清除查询结果
private function clearFeature():void
{
if(highlayer && highlayer.numChildren > 0)
{
this._map.removeLayer(highlayer);
}
_map.action = new Pan(_map);
resultFeatures = [];
if(this.recordGrid)
{
this.recordGrid.clear(); //第509行
}
featuresLayer.clear();
this.result.visible = false;
// this.resultDisplay.visible=false;
}
好奇怪,不知道什么原因,还有这句代码:
if(!this.recordGrid)
{
......
}else
{
......
}
这里的this.recordGrid明明是一个FeatureDataGrid对象,怎么可以这样?太受打击了。 |
|