| Bug ID Number |
BUG-000135228 |
| Submitted | November 6, 2020 |
| Last Modified | July 4, 2025 |
| Applies to | ArcGIS API for JavaScript |
| Version found | 4.17 |
| Operating System | Windows OS |
| Operating System Version | 10.0 |
| Version Fixed | 4.20 |
| Status | Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
|
Workaround
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
- 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.
- Pan the map to a different map extent and zoom in by one level.
- Click the refresh button to update the map scale.
- Print the map. If the exported map is blank, load the generated URL/link into a separate tab which should load the PDF image.
- 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.
- Using this same application, manually disable and then re-enable the "Set Scale" option.
- 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.
- 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.
- 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.
Steps to Reproduce