Select to view content in your preferred language

Dynamic workspace and generate renderer?

2100
3
Jump to solution
10-22-2012 01:27 AM
by Anonymous User
Not applicable
Original User: vdkamp

Should it be possible generate rendering information (GenerateRenderTask) based on a layer in the dynamic workspac of a map service?

I find it difficult to get this working based on the 'Dynamic Workspace' and 'Generate Renderers' examples. For instance: should an URL be defined for GenerateRenderTask and if so: how to get it? DetailsTask.getAllDetails doesn't seem to give information on a layer in the dynamic workspace.
0 Kudos
1 Solution

Accepted Solutions
DasaPaddock
Esri Regular Contributor
You need to set the "source" property to a LayerDataSource:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/GenerateRendererTask.html#sou...
You'll aslo need to set the "url" like shown in the doc for the "source" property.

View solution in original post

0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
You need to set the "source" property to a LayerDataSource:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/GenerateRendererTask.html#sou...
You'll aslo need to set the "url" like shown in the doc for the "source" property.
0 Kudos
by Anonymous User
Not applicable
Original User: vdkamp

Thank you, using http://<mapservice-url>/dynamicLayer does work. It was not clear to me that I had to add �??/dynamicLayer�?� to my map service URL to access the dynamic workspace. May be the documentation can be extended to clearly explain this.
0 Kudos
HeatherGonzago
Esri Contributor
Thank you, using http://<mapservice-url>/dynamicLayer does work. It was not clear to me that I had to add �??/dynamicLayer�?� to my map service URL to access the dynamic workspace. May be the documentation can be extended to clearly explain this.


You can find detailed documentation regarding working with dynamic workspaces at http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Dynamic_workflows_overview/017p000....
0 Kudos