AnsweredAssumed Answered

get a feature class from a ArcGISDynamicMapServiceLayer

Question asked by burton449 on Jan 15, 2014
Latest reply on Jan 16, 2014 by pepatosp
Hi,

I have published a map as a service with ArcGIS Server. I have built my simple map like this:

    require(["esri/map", "dojo/domReady!", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/SpatialReference",], function(Map) {       layer1 = new esri.layers.ArcGISDynamicMapServiceLayer("http://localhost:6080/arcgis/rest/services/carte1/MapServer", {         'opacity': 0.75       });       map = new Map("maptest1", {         basemap: "topo"       });       map.addLayers([layer1]);       map.on("layers-add-result", function(){       var extent = layer1.fullExtent;       map.setExtent(extent);              });     });


I would like to use a published geoprocess in the map and select a particular feature class from the ArcGISDynamicMapServiceLayer as input.

Is it possible? If I do map.getLayer("layer1") will I retrieve all features class that was published in the map? What is the method to do what I am trying to do?

Thank you a lot!

Outcomes