jay.kapalczynski

Trying to add arcgis online layer to map

Discussion created by jay.kapalczynski on Jan 23, 2014
Latest reply on Jan 23, 2014 by JUihlein-esristaff
From examples I am trying to add this to the code below:


  
arcgisUtils.createMap("7f843bb0a37849f68a5a2cc3d2b06288", "mapDiv").then(function (response) {
        map = response.map;
});


Nothing shows up...its sort of a combination of two examples....just want to add data from a WebMap and from a REST enpoint...anyone know what I am doing wrong?


     
...SNIP

var map, tb;

      require([
        "esri/map", "esri/toolbars/draw", "esri/arcgis/utils",
        "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol",
        "esri/symbols/PictureFillSymbol", "esri/symbols/CartographicLineSymbol",
        "esri/graphic",
        "dojo/_base/Color", "dojo/dom", "dojo/on", "dojo/domReady!"
      ], function(
        Map, Draw, arcgisUtils,
        SimpleMarkerSymbol, SimpleLineSymbol,
        PictureFillSymbol, CartographicLineSymbol,
        Graphic, Color, dom, on
      ) {
 
  arcgisUtils.createMap("7f843bb0a37849f68a5a2cc3d2b06288", "mapDiv").then(function (response) {
        map = response.map;
  });
   
map = new Map("mapDiv", {
          basemap: "topo",
          center: [-77.4329, 37.5410],
          zoom: 7,
          slider: true  
        });
        map.on("load", initToolbar);

...SNIP

Outcomes