laptop and a wrench

不具合

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.

最後に公開された状態: January 11, 2022 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000143342
送信されましたSeptember 30, 2021
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン4.21
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
ステータスWill Not Be Addressed

参考情報

The issue is due to a user error.

対処法

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;

再現の手順

不具合 ID: BUG-000143342

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動