laptop and a wrench

不具合

When the JavaScript Print Widget "Set Scale" option is enabled, the map extent or the map viewpoint is not allowed to change for successive map printouts.

最後に公開された状態: May 11, 2021 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000135228
送信されましたNovember 6, 2020
最終更新日July 4, 2025
適用対象ArcGIS API for JavaScript
見つかったバージョン4.17
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
修正されたバージョン4.20
ステータスFixed

対処法

First Option:

  • Leaving the "Set Scale" disabled does not lock the map extent or the map viewpoint from the first printout.

Second Option:

  • The other option is the Template Options class which programmatically sets the scale to "True" for the Print widget. This parameter does not lock the map extent or the map viewpoint after the first printout.
  • Refer to the video attachment workaround.mp4 which demonstrates the Print widget using the Template Options class that does not lock the map extent or the map viewpoint for subsequent printouts. The video also shows manually re-enabling the "Set Scale" option re-activates the bug.

Run the sample JavaScript application link below.

Link:

  • https://jsbin.com/wiwaker/2
  1. Print the current map extent. If the exported map is blank, load the generated URL/link into a separate tab which should load the PDF image.
  2. Pan the map to a different map extent and zoom in by one level.
  3. Click the refresh button to update the map scale.
  4. Print the map. If the exported map is blank, load the generated URL/link into a separate tab which should load the PDF image.
  5. Compare the two printouts. The second printout will show that the map extent and map viewpoint is different from the first printout.

Side Note:

Manually re-enabling the "Set Scale" option re-activates the bug.

  1. Using this same application, manually disable and then re-enable the "Set Scale" option.
  2. Print the current map extent. If the exported map is blank, load the generated URL/link into a separate tab which should load the PDF image.
  3. Pan the map to a different map extent. Print the map. If the exported map is blank, load the generated URL/link into a separate tab which should load the PDF image.
  4. Compare the two printouts. The latest printout will show that the map extent has not changed from the previous printout after manually re-enabling the "Set Scale" option.

再現の手順

不具合 ID: BUG-000135228

ソフトウェア:

  • ArcGIS API for JavaScript

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

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

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

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

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

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

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