Changes to an existing CompositeSymbol class by adding, removing, or updating the symbols contained, are not reflected in the display.
上次发布: April 5, 2019ArcGIS Runtime SDK
漏洞 ID 编号
BUG-000091416
已提交
October 14, 2015
上次修改时间
June 5, 2024
适用范围
ArcGIS Runtime SDK
找到的版本
10.2.6
操作系统
Windows OS
操作系统版本
7.0 64 Bit
修正版本
100.4
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Re-create, modify, and reapply the composite symbol as shown in the following example code:// create a new composite symbolvar newCompoiteSymbol = new CompositeSymbol();// loop through all symbols in the existing composite symbolforeach (Symbol s in oldCompositeSymbol.Symbols) {// copy symbols from the existing composite symbol to the new onenewCompoiteSymbol.Symbols.Add(s);}// make desired changes for newCompoiteSymbol here ...// apply the new composite symbolforeach (Graphic g in gOverlay.Graphics)g.Symbol = newCompoiteSymbol;