AnsweredAssumed Answered

4.7 - Untitled Layer is being visible in layerList Widget when i define new SketchViewModel

Question asked by tubakumbara on May 16, 2018
Latest reply on May 21, 2018 by jcarasick

hello. 

 

I defining a new graphicslayer which has listmode property value as "hide". And this graphicslayer doesn't show in layerlistwidget (this is what i want)

 

var myg = new graphicsLayer({

    listMode: "hide";

})

 

mymap.add(myg);

 

new sketchView 

 

var s = new SketchViewModel({

   view: mySceneView,

   layer: myg,

});

 

when i run this code an Untitled Layer is being visible on layerlist.

 

This layer is not myg. Another new layer.

Outcomes