Overview map sample code "AbortError"

128
2
Jump to solution
2 weeks ago
BlasElias
New Contributor

Hello,

In implementing the overview map sample (Sandbox | Sample Code | ArcGIS Maps SDK for JavaScript 4.29 | ArcGIS Developers) I noticed that the console is intermittently passing a group of "AbortError" errors (see screen cap below) on pan and/or zoom. It seems to be related to the extentDebouncer() promise chain in the sample code. To recreate the behavior, simply pan/zoom in the SceneView while observing browser devTools console. 

 overviewErrors.PNG

 

 

0 Kudos
1 Solution

Accepted Solutions
JohnGrayson
Esri Regular Contributor

If you'd like to not see abort errors in the console, you can do something like this:

extentDebouncer().then(() => {
  extent3Dgraphic.geometry = extent;
}).catch(error=>!promiseUtils.isAbortError(error) && console.error(error))

View solution in original post

0 Kudos
2 Replies
JohnGrayson
Esri Regular Contributor

If you'd like to not see abort errors in the console, you can do something like this:

extentDebouncer().then(() => {
  extent3Dgraphic.geometry = extent;
}).catch(error=>!promiseUtils.isAbortError(error) && console.error(error))
0 Kudos
BlasElias
New Contributor

Thanks John. That will work for our purposes...glad it's not a bug! 

0 Kudos