Custom SimpleMarkerSymbol Error
I am trying to use a custom SimpleMarkerSymbol instead of the generic blue dot in a workflow. However, I keep getting the following error when I try to save the .xaml file:
'Character '+' was unexpected in string esri:SimpleMarkerSymbol+SimpleMarkerStyle'. Invalid XAML type name'
Does anyone have a working example of how to use a custom SimpleMarkerSymbol in workflow? Or at least a list of steps required?
HTML5, GE 4.3
Thanks!
-
I solved it. I just added my point to a new FeatureSet. Then I used 'UpdateGraphicsLayers' tool to create a new Graphics Layer, add the feature set and define the renderer using this string:
New ESRI.ArcGIS.Client.SimpleRenderer() With { .Symbol = new ESRI.ArcGIS.Client.Symbols.SimpleMarkerSymbol() With { .Color = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.DarkBlue), .Size = 14.0, .Style = ESRI.ArcGIS.Client.Symbols.SimpleMarkerSymbol.SimpleMarkerStyle.Square } }
0 -
Nice! Thanks for posting this!
Rick
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare