laptop and a wrench

Bug

The MapView goTo() method does not respect padding or view extent when the browser window is reduced to a smaller size.

Last Published: October 16, 2019 ArcGIS API for JavaScript
Bug ID Number BUG-000121925
SubmittedApril 24, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.11
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

Some updates have been made for the MapView padding. In 2D, the center and scale are preserved when resized. This can not be done because by default it snaps to LODs (level of details).

Workaround

To achieve this effect :

  1. Disable snapToZoom.
  2. Save the view.extent when the view stops moving.
  3. Apply the saved extent when the view resizes.

Steps to Reproduce

Bug ID: BUG-000121925

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