require([ "esri/map", "esri/arcgis/utils", "dojo/domReady!" ], function(Map, arcgisUtils){ arcgisUtils.createMap("1a40fa5cc1ab4569b79f45444d728067", "mapDiv").then(function (response) { map = response.map; }); });
map = new Map("mapDiv", { center: [-77.4329, 37.5410], zoom: 6, basemap: "streets"
<script> var map; require(["esri/map", "esri/arcgis/utils", "esri/dijit/Legend", "dojo/domReady!" ], function(Map, arcgisUtils, Legend ) { arcgisUtils.createMap("1a40fa5cc1ab4569b79f45444d728067", "mapDiv").then(function (response) { map = response.map; var legend = new Legend({ map: map, layerInfos:(arcgisUtils.getLegendLayers(response)) }, "legendDiv"); legend.startup(); }); }); </script>
Solved! Go to Solution.
Thanks very much for your help, is there anyway to display webmaps without a webserver running?