VinayBa

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");
 map.addLayer(WorldCountries1);                                    
  var WorldCountries = new ArcGISDynamicMapServiceLayer("arcgisUrl");
        //WorldCountries.setOpacity(0.75);
        console.log(" in map ");
        map.addLayer(WorldCountries);


  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.

Outcomes