Sample ESRI.ArcGIS.Client.SimpleRenderer?
Are there any examples of how to properly format polygon and line features using the ESRI.ArcGIS.Client.SimpleRenderer simpler to the simplemarker from Update Graphics sample workflow?
New ESRI.ArcGIS.Client.SimpleRenderer With
{
.Symbol = New ESRI.ArcGIS.Client.Symbols.SimpleMarkerSymbol() With
{
.Color = New System.Windows.Media.SolidColorBrush() With
{
.Color = System.Windows.Media.Color.FromArgb(255, 0, 255, 0)
},
.Size = 9
}
}
0
-
Could you explain in a bit more detail what it is you want to achieve? 0 -
I have different feature sets that I'm getting from a query task, some line, and some polygons and want to be able to render the graphics differently. For example, ssMainsFeatureSet (line geometry) = thick bright red, and ssBasinsFeatureSet (polygon geometry) = Yellow fill, Blue outline, 50% transparent 0 -
Here's one I created for a polygon layer:
{
"type": "simple",
"symbol":
{
"type": "esriSFS",
"style": "esriSFSNull",
"color": [0,0,0,0],
"outline": {
"type": "esriSLS",
"style": "esriSLSSolid",
"color": [255,255,0,255],
"width": 1.4
}
}
}0 -
Thank-you, this is what I was looking for. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer