laptop and a wrench

Bug

Polygons on GraphicLayers cannot be rendered without a fill.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM006365
SubmittedJanuary 26, 2007
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
StatusWill Not Be Addressed

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.

Steps to Reproduce

Bug ID: NIM006365

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options