Polygons on GraphicLayers cannot be rendered without a fill.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM006365
已提交
January 26, 2007
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
9.2
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
No Public Explanation
解决办法
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.