Select to view content in your preferred language

Changing FeatureLayer SelectionColor has no effect

1766
10
03-14-2011 06:48 AM
MarkusHjärne
Deactivated User
Hi,

I have a FeatureLayer pointing to a feature service with an unique value renderer. When trying to change the SelectionColor after the layer has been initailized, the value gets set, but the selection color in the map isn't changed. Shouldn't that be possible? I'm using version 2.0 of the API.

Regards,

Markus Hjarne
0 Kudos
10 Replies
MarkusHjärne
Deactivated User
Thanks again for your help. But recreating the layer might work in isolation, but in a real-world application where references to the layer have been passed around and event handlers have been wired to it in different places, it is not that easy to do.

I have created a new renderer without selection color and it works.
0 Kudos