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
Solved! Go to Solution.
Here's an example that uses a map service and shows how to wire up its components
Here's an example that uses a map service and shows how to wire up its components
Thanks