jwherning

featureLayer selection persists accross different layers

Discussion created by jwherning on May 24, 2013
I have an app that has a tab container with two tabs one for legend view and layer selection and one for editing.  When the user chooses a layer group and goes into edit mode the currently loaded layers are searched for editable layers.  All layers are then removed from the map and the editable layers are reloaded and the edit tab is populated with layer controls and templatePickers as necessary.  The issue I have is that when I click on a feature in the legend view tab the popup comes up and the feature is selected as desired but if I then go into the edit mode no matter what feature I click on regardless of layer the selection is stuck on the space defined by the last feature accessed in the legend view.  I have tried cycling the map layers through clearSelection both before going into edit mode and after entering edit mode and nothing works.  Any help would be much appreciated.

Outcomes