Combinig two map serices

Discussion created by VinayBa on Jan 28, 2014
Latest reply on Jan 28, 2014 by kenbuja
HI all,

  I want to combine two map serices , i have one map service which is map and other has some other service . I need to combine these and show on .I tried the following

map = new Map("MapSection", { 
          extent: initExtent
          WorldCountries1 = new esri.layers.ArcGISDynamicMapServiceLayer("mpasericeurl1");
  var WorldCountries = new ArcGISDynamicMapServiceLayer("arcgisUrl");
        console.log(" in map ");

  When i did that the first service is displaying behind the second service , i reversed the order in which i am adding layer but still issue persist what could be the better way to do this.