03-18-2016 10:09 AM
We've encountered a bug with the $GP.selectedFeatures.clear method. This method is causing the selected features to revert back to the style which they had before they were selected. In our case that style has changed while the feature was selected, causing the feature to show a style which is incorrect for its current state.
A point has a status of Undamaged which is represented as a green dot.
The user selects that point which now displays as the Undamaged selected style, a green dot with a white outline.
The user changes the status to Damaged and updates the database through our service.
In the ajax request callback we call $GP.map.refresh, which displays the point with the Damaged selected style, a red dot with a white outline.
The user closes the editing panel which calls $GP.selectedFeatures.clear
The point displays as the Undamaged green dot style, rather than the Damaged red dot style.
Calling $GP.map.refresh at this point causes the correct style to be applied, but the incorrect style has still been displayed.