AnsweredAssumed Answered

re-render scenelayer

Question asked by j.eyreesri-ch-esridist Employee on Feb 23, 2017

I am am writing a web app builder widget, and i want to re-render a scenelayer coming from my sceneview. I set the renderer on the scenelayer, but nothing happens. Any ideas?

 

see the code below.

 

public startup() {

   this.sceneView.map.allLayers.forEach((layer: Layer) => {

       if (layer.id == "154bd77e20e-layer-16") {

         this.layerToRender = layer as SceneLayer;

      }

   });

 

   var symbol = new MeshSymbol3D(
      new FillSymbol3DLayer({
         material: {
            color: [244, 2, 1]
         }
      })
   );
   var renderer = new SimpleRenderer({
      symbol: symbol
   });

   this.layerToRender.renderer = renderer;

}

Outcomes