Select to view content in your preferred language

Access layers of sceneView in WebAppbuilder Settings-Page

465
0
04-09-2019 01:29 AM
MHahn
by
Occasional Contributor

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;
Tags (3)
0 Kudos
0 Replies