Select to view content in your preferred language

PrintTask - ESRI.ArcGIS.Client.FeatureService.Symbols.SimpleFillSymbol bug?

908
1
09-06-2012 04:28 AM
SzymonPiskula
Deactivated User
Hi

I've been trying to print FeatureLayer polygon features data using ESRI.ArcGIS.Client.FeatureService.Symbols.SimpleFillSymbol
in order to get control over fill color, border style and others that not available with ESRI.ArcGIS.Client.Symbols.SimpleFillSymbol . This is done with ESRI SL5 API 3.0 .

For printing i use a cutom prining geoprocessing task. In general it works well but if the mentioned symbol is applied i do not get the polygons filled. Although the outline looks correct. As i examine the (webmap)JSON sent from browser to geoprocessing service i can see that for FeatureService.Symbols.SimpleFillSymbol the symbol definition is missing the fill symbol color.

Also when running the following test code and stepping into it with debugger the following screnshot shows what i see in memory

[ATTACH=CONFIG]17515[/ATTACH]

Is there a fix for this or is this a bug in the Silverlight 5  API 3.0 ?
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Instead of setting the 'Fill' property, you should set the 'Color' property:

simpleFillSymbol.Color = new SolidColorBrush.....


Note also that FeatureService.Symbols.SimpleFillSymbol is for internal use only. External usage is at your own risk.
0 Kudos