Changing a point symbol using Renderer
I am changing a point using Update Graphics Layer using the code below in the Renderer
This wotks for Circle Diamond and Square but not Triangle and Cross
Any ideas?
New ESRI.ArcGIS.Client.SimpleRenderer() With { .Symbol = new ESRI.ArcGIS.Client.Symbols.SimpleMarkerSymbol() With { .Color = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Black), .Size = 15.0, .Style = ESRI.ArcGIS.Client.Symbols.SimpleMarkerSymbol.SimpleMarkerStyle.Circle} }
0
-
IIRC, some symbols need to have an Outline specified instead of just the color. 0 -
Hi Jeff,
Triangle and Cross markers do not work, for two different reasons. From our bug tracker:
Cross not working is a known bug in ESRI's API. We had reported this bug but I don't know if it has been fixed.
Triangle is not expected to work. The Javascript API does not support the full range of symbols configurable in a REST API (or WebMap) symbol JSON object, and this is one of the missing ones.
Regards,
-Malcolm0 -
Thank you 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare