Select to view content in your preferred language

Custom icon switch to default after select and unselect feature in feature class

1792
10
Jump to solution
11-06-2017 11:48 PM
ZdeněkSoldán
Regular Contributor

Hello,

I have some feature layers created in my code from feature collection. In the feature collection I have defined a default icon for this layer. Further in the code I change the icon for some features according some parameters. 

When I open Attribute Table widget with this layer and select the feature with different icon than default and after that unselect this feature it have default icon not the icon I defined for this feature. 

How can I preserve the defined icon in such cases?

Thanks a lot!

0 Kudos
10 Replies
ZdeněkSoldán
Regular Contributor

Robert,

I found the error in my code. Default symbol wasn't a symbol object. Now it works!

Thanks a lot

0 Kudos