AnsweredAssumed Answered

Layer List Widget

Question asked by jay.kapalczynski on Oct 23, 2015
Latest reply on Oct 23, 2015 by jay.kapalczynski

Layer List Widget....I am trying to use the example below but reference a Map Service instead of a web map....how would I do that?

 

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

});

 

LayerList widget | ArcGIS API for JavaScript

Outcomes