Hello all,
Since upgrade to last version of ArcGIS Maps SDK (v4.30), I am unable to switch back from 3D to 2D, obtaining error log "Uncaught TypeError: Cannot read properties of null (reading 'symbologySnappingSupported')".
Here is a sample code reproducing my issue (https://codepen.io/blecuona/pen/OJejdoe?editors=1011).
Differences with Esri sample code ([https://developers.arcgis.com/javascript/latest/sample-code/views-switch-2d-3d/](https://developers.arcgis.com/javascript/latest/sample-code/views-switch-2d-3d/)) which perfectly works are:
1. There is a layer on map
2. This layer is shared between mapView and sceneView
3. A measurement widget is set on map
4. This layer's renderer is reset on mapMode change (2D - 3D)
After many checks, renderer update (difference 4) while measurement widget is opened (difference 3) is responsible of the bug.
Is there any solution keeping this code logic? Or should I stay with ArcGIS Maps SDK v4.39?
Thanks for your help.