Hello,I have an esri editor in my application.It is started as this:var featLyr:FeatureLayer = getEditLayer();
var featArr:Array = [ featLyr ];
myEditor.featureLayers = featArr ;
myEditor.updateGeometryEnabled = true;
myEditor.addEnabled = true;
myEditor.deleteEnabled = true;
myEditor.updateAttributesEnabled = false;
myEditor.attributeInspector.visible = false;
It works fine so far, but if the featurelayer returned by getEditLayer() already contains a selection, in the editor the buttons "Clear selection" and "Delete" are not activated. I add the following lines, to cause the editor to activate the buttons, but it looks very much like a bas workaround to me. setTimeout(updateSelectionState, 1000);
private function updateSelectionState():void
{
EditorSkin(myEditor.skin).currentState = getEditLayer().selectedFeatures && getEditLayer().selectedFeatures.length > 0 ? "featuresSelected":"normal";
}
Does someone found a better solution?bye,Andreas Ruloffs