Select to view content in your preferred language

Drawing geoprocessing results with a map service

4126
14
11-20-2014 12:26 PM
JoshObrecht
Regular Contributor

I am trying to draw the results of a geoprocessing service with a given symbology. After I run the tool, I set the result layer to the given symbology. After sharing as a Geoprocessing Service, the result after the service is run does not contain the symbology. Am I missing a step somewhere?

14 Replies
JoshObrecht
Regular Contributor

bump

0 Kudos
XanderBakker
Esri Esteemed Contributor

Did you define the symbology in your tool parameter settings or did you change the symbology manually after the run?

0 Kudos
JoshObrecht
Regular Contributor

Manually after the run.

0 Kudos
ArokiyaJoseph
Deactivated User

Hmm..What is the output of your geoprocessing tool and what type of symbology is it?

JoshObrecht
Regular Contributor

Feature layer with unique values

0 Kudos
ArokiyaJoseph
Deactivated User

Are you running the published geoprocessing task in ArcGIS Desktop or consuming it in web applications?

If it is in web applications, the symbology has to be defined by the client. If it is Desktop, yes it should draw the output with unique values symbology.

0 Kudos
JoshObrecht
Regular Contributor

I would like to do it within a web application. Will this need to be done with the Javascript API?

0 Kudos
ArokiyaJoseph
Deactivated User

Yes. The symbology has to be defined through the Web API (eg. JavaScript API) when consumed in web applications. The other alternative for using the same symbology as in geoprocessing result is to use Result Map Service. But, creating a result map service adds a bit of overhead and used only for complex symbology and labels. For a simple symbology such as unique value renderer, it's better to set the symbology through the Web API.

JoshObrecht
Regular Contributor

Interesting. I am using a result map service.

0 Kudos