laptop and a wrench

Bug

When using the Center property, the extent of the map misplaces once it is loaded in the browser.

Last Published: October 26, 2020 ArcGIS API for JavaScript
Bug ID Number BUG-000134682
SubmittedOctober 19, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.17
Operating SystemN/A
Operating System VersionN/A
StatusNon-Reproducible

Additional Information

When using a point object to set the Center property, the point object must have a spatial reference that is compatible with the MapView's spatial reference. See the spatialReference property of the MapView documentation for more information: https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#spatialReference Changing the spatialReference property of the point object to WGS84 (4326) sets the center of the MapView correctly: https://codepen.io/laurenb14/pen/xxOgPLd?editors=1000

Steps to Reproduce

Bug ID: BUG-000134682

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