Cannot change basemap in sceneview after switching from MapView to SceneView

313
0
02-07-2020 05:54 AM
Aslak_WegnerEide
New Contributor

Hi, 

I have an application where I allow the user to switch between 2d and 3d viewing. I also have a menu where the user can change the basemap. 

My problem is the following: When a user switches from MapView to SceneView it is no longer possible to change the basemap in the sceneview. When trying to change the basemap, the sceneview goes into a weird state where tiles are no longer fetched, and sometimes the sceneview goes black. 

I have made a jsfiddle to illustrate the problem: https://codepen.io/baaah/pen/Exjaava?editable=true&editors=100 

In the fiddle, there are two buttons below the map: 3D and background. Try switching to 3D by pressing the 3D button, and then click on the background button to change the basemap. You will see that the basemap does not change. 

I think the problem is related to the elevationlayer, because it works as expected without this layer. I also think the problem is related to 4.14 version, because it used to work in 4.13. 

Any suggestions on how to fix this? 

0 Kudos
0 Replies