Highlight different features in different color
I have two features and want to highlight them to different colors. I created two highlight colors using "SetHighlightFillColor" for two features. However the map only displays the first color and display is not stable.
I saw another activity called Update Graphics Layer but i could not find a sample on how to use it.
Please help. Thanks.
0
-
Hi Yinghong,
There are working examples of "Update Graphics Layer" in the "Workflow_Samples" site that ships with Essentials.
Also, if you would like some information on how to use the JSON renderer, there is some discussion on it here (https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906f2000000kA5DAAU)0 -
Thanks. I figured out how to use it by searching the forum and the information bit by bit. Here is what i used and hopefully it will help others:
New ESRI.ArcGIS.Client.SimpleRenderer() With { .Symbol = new ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol() With { .BorderBrush = new System.Windows.Media.SolidColorBrush(system.windows.media.color.fromrgb(0,172,101)), .BorderThickness = 1.0, .Fill = new System.Windows.Media.SolidColorBrush(system.windows.media.color.fromrgb(0,172,101)) With { .Opacity = 0.5 } } }
Also do not use variable for the layer ID instead use a real name, e.g "parcel layer" , so the graphic layer can be cleared out in other workflows.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer