ESRI JS API 4.17: error adding graphic

532
4
Jump to solution
10-16-2020 10:33 PM
NicolasGIS
Regular Contributor

Hello,

After upgrading my application to 4.17, I just noticed an error after adding graphic to mapView:

GraphicError

You can easily reproduce the issue using the following sample "Add graphics (SceneView)":

ArcGIS API for JavaScript Sandbox 

and replace sceveView by mapView:

CodePen

Thanks for listening !

/cc Noah Sager

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
UndralBatsukh
Esri Regular Contributor

Hi there, 

I am able to reproduce the issue. The error thrown because the graphic geometries are null at the initial scale of your app. If you zoom in you will see all the geometries. The console error do not affect the functionality of your app. With this said, we created an issue to remove this error. 

Hope this helps, 

-Undral

View solution in original post

0 Kudos
4 Replies
UndralBatsukh
Esri Regular Contributor

Hi there, 

I am able to reproduce the issue. The error thrown because the graphic geometries are null at the initial scale of your app. If you zoom in you will see all the geometries. The console error do not affect the functionality of your app. With this said, we created an issue to remove this error. 

Hope this helps, 

-Undral

0 Kudos
NicolasGIS
Regular Contributor

Thanks for reply !

Happy to read that it is logged

0 Kudos
UndralBatsukh
Esri Regular Contributor

Hi there, 

This issue is fixed at 4.17. You can verify it using the test app you provided. 

-Undral

0 Kudos
NicolasGIS
Regular Contributor

Thanks for the reply.

Indeed, CDN looks fixed. But I still have the issue using arcgis-webpack-plugin.

Thanks

0 Kudos