Erro
Número de ID do Erro | BUG-000143342 |
---|---|
Enviado | September 30, 2021 |
Última Modificação | June 5, 2024 |
Aplica-se à | ArcGIS API for JavaScript |
Versão encontrada | 4.21 |
Sistema Operacional | Windows OS |
Versão do Sistema Operacional | 10.0 |
Status | Will Not Be Addressed |
To change Graphic.symbol at runtime, do one of the following:
The following code works. There is no need to remove and add graphics from GraphicsLayer to change graphic symbols. Use the layer.graphics.getItemAt() method to get the graphic instead of layer.graphics.items.
var gp0 = layer.graphics.getItemAt(0);
var gp1 = layer.graphics.getItemAt(1);
var gp2 = layer.graphics.getItemAt(2);
const symbol0 = gp0.symbol.clone();
symbol0.size = 10 * rate;
gp0.symbol = symbol0;
gp1.symbol = symbol0;
gp2.symbol = symbol0;
ID do Erro: BUG-000143342
Software:
Obtenha ajuda de especialistas do ArcGIS
Baixe o Aplicativo de Suporte da Esri