Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Occasional Contributor
Posts: 18
Registered: ‎10-14-2015

Bug with $GP.selectedFeatures.clear

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 $, 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 $ at this point causes the correct style to be applied, but the incorrect style has still been displayed.

Technical Evangelist
Posts: 184
Registered: ‎07-30-2015

Re: Bug with $GP.selectedFeatures.clear



I'll report the bug.