Polygons on GraphicLayers cannot be rendered without a fill.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM006365
Submitted
January 26, 2007
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
9.2
Status
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
Additional Information
No Public Explanation
Workaround
The problem occurs in: ESRI.ArcGIS.ADF.Web.Display.Drawing.DrawingUtility.cs:DrawSimpleFillSymbolline 399: Color fillColor = Color.FromArgb(fillTrans, sym.Color);Calling this method with Color.Empty is equivalent to:Color fillColor = Color.FromArgb(fillTrans, 0, 0, 0);Calling this method with Color.Transparent is equivalent to:Color fillColor = Color.FromArgb(fillTrans, 255, 255, 255);Thus the result will be a black or white color, with a transparency value set to fillTrans.The correct method would be not to call g.FillPolygon(...) in line 412 in case of Color.Empty or Color.Transparent, or in the case of a semitransparent color (sym.Color.A!=255) to multiply its transparency with the fillTrans value.Another workaround would be to make it possible to also specify a SimpleLineSymbol for rendering polygons. Currently if this is specified, the polygon never gets rendered.