laptop and a wrench

Erro

Resizing the array of point graphics on the graphics layer does not reflect on the map view while zooming in or out when accessing the graphics.

Última Publicação: January 11, 2022 ArcGIS API for JavaScript
Número de ID do Erro BUG-000143342
EnviadoSeptember 30, 2021
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada4.21
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
StatusWill Not Be Addressed

Informações Adicionais

The issue is due to a user error.

Solução Provisória

To change Graphic.symbol at runtime, do one of the following:

  • Clone the symbol and change its properties.
  • Assign a new symbol.

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;

Etapas para Reproduzir

ID do Erro: BUG-000143342

Software:

  • ArcGIS API for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download