AnsweredAssumed Answered

Layer list

Question asked by anjelinaponkerat on Dec 8, 2017
Latest reply on Dec 9, 2017 by rscheitlin

I checked  LayerList widget | ArcGIS API for JavaScript 3.22   but I dont know how can change "map id" with my own web map servces? I,m not on arcgis Online and going to use my own web map service :

 

 

   //Create a map based on an ArcGIS Online web map id
    arcgisUtils
.createMap("f63fed3f87fc488489e27c026fa5d434", "map").then(function(response){
       
var myWidget = new LayerList({
           map
: response.map,
           layers
: arcgisUtils.getLayerList(response)
       
},"layerList");
        myWidget
.startup();
   
});

Outcomes