laptop and a wrench

Bug

The scale property of the MapView class fails to persist changes when updated in a click event.

Last Published: October 30, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000126314
SubmittedOctober 25, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.13
StatusWill Not Be Addressed

Additional Information

The view.scale still updates. Although it takes a bit longer to update, use view.goTo(); console.log("[BEFORE] MapView.scale", view.scale); view.goTo({scale: view.scale+10000}).then(function(){ console.log("[AFTER] MapView.scale", view.scale); }); The “AFTER” value would wait to log in the console until the view’s scale has updated.

Workaround

Use ArcGIS API for JavaScript 4.12.

Steps to Reproduce

Bug ID: BUG-000126314

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options