AnsweredAssumed Answered

Access layers of sceneView in WebAppbuilder Settings-Page

Question asked by mattes1000 on Apr 9, 2019

I got a 2D widget build in WebappBuilder

In the Settings.js I got the ability to configure some stuff for each layer of the map.

The code to access the layers (array) is:

 

"jimu/LayerStructure" 
...


var layerStructure = LayerStructure.getInstance();
var layerNodes = layerStructure.getLayerNodes();

 

I read https://developers.arcgis.com/web-appbuilder/guide/3d-development-guide.htm 

It says. The Settings.js uses the 3.x and the Widget the 4.x API.

 

No I want to access get the layernodes (?) of a 3D map (sceneView) in the Settings.js

 

How do I achieve this?

 

Edit: I can get the layerNodes by 

var layerNodes = this.sceneView.map.layers;

Outcomes