AnsweredAssumed Answered

trying to add map service layer

Question asked by jay.kapalczynski on May 29, 2014
Latest reply on May 29, 2014 by jay.kapalczynski
Trying to add map service layer and not working...thoughts?

Syntax?  Maybe because I am using FeatureLayer?  Using Server 10.1

Note:  Changed the Rest End point URL for this example

 // Warbler 1  var flWarbler1 = new ArcGISDynamicMapServiceLayer("https://fwisweb1.gov/arcgis/rest/services/Warbler_Map/Warbler_Map_Readonly/MapServer/0", {          mode: FeatureLayer.MODE_ONDEMAND,          outFields: ['*']     });  // Warbler 2  var flWarbler2 = new ArcGISDynamicMapServiceLayer("https://fwisweb1.gov/arcgis/rest/services/Warbler_Map/Warbler_Map_Readonly/MapServer/1", {          mode: FeatureLayer.MODE_ONDEMAND,          outFields: ['*']     });  app.map.addLayer(flWarbler0);  app.map.addLayer(flWarbler1);

Outcomes