I am having problems removing a selected feature from my feature layers. I am getting the correct feature selected, but the actual removal of the graphic is not working. The code below shows one of my feature layer selections with the SELECTION_SUBTRACT method, and its responder "removeFeaturesHandler".case "TEL=COMNT":
cmntLayer.selectFeatures(remQuery, FeatureLayer.SELECTION_SUBTRACT,
new AsyncResponder(removeFeaturesHandler, removeFeaturesFault));
protected function removeFeaturesHandler(features:Array, token:Object = null):void
{
for each (var remgraphic:Graphic in features)
myGraphicsLayer.remove(remgraphic);
}
I've been debugging this and the remgraphic variable is populated with a graphic id, but it doesn't correspond to any of the graphic ids I see in the graphicProvider array. Where am I going wrong?