Q: How to work on map created by using arcgisUtils.createMap  arcgisUtils.createMap(id,"map").then(function(response){
          //update the app 
          dom.byId("title").innerHTML = response.itemInfo.item.title;
          dom.byId("subtitle").innerHTML = response.itemInfo.item.snippet;

          map = response.map;


        });


A: From what I gather about your responses, it looks like you're trying to do things to the map before it is ready. You need to test whether the map has loaded its first layer before you can add your feature layers, etc. Here's how I would go about working with it.
var map;

function onMapLoad() {
  // when function called, do whatever you need to do to your map
  var flayer = new FeatureLayer(...);
  map.addLayer(flayer);
  // do other stuff...
}

arcgisUtils.createMap(id,"map").then(function(response){
  //update the app 
  dom.byId("title").innerHTML = response.itemInfo.item.title;
  dom.byId("subtitle").innerHTML = response.itemInfo.item.snippet;

   map = response.map;

   // check if map has loaded before manipulating it.
   if (map.loaded) {
     onMapLoad();
   } else {
     map.on("load", onMapLoad);
   }
});


A: If you want to be able to access it globally, one option is to set it this way
window.theMap = response.map;

Then you can call theMap or window.theMap from anywhere.

A: var mymap;
 arcgisUtils.createMap(id,"map").then(function(response){
mymap = response.map;

