Select to view content in your preferred language

UseImage option for ArcGISDynamicServiceLayer for Flex API

613
3
06-13-2012 10:21 AM
HongTang
Deactivated User
Hi,

I am trying to force the server side generate a output image for the ArcGISDynamicServiceLayer instead of real data over the internet.

I searched the website and found for JavaScritp API, there is one parameter for the ArcGISDYnamicServiceLayer called useMapImage (see the following description)

When true, the image is saved to the server, and a JSON formatted response is sent to the client with the URL location of the image. A second call is automatically made to the server to retrieve the image. This value is set in the constructor using useMapImage. (As of v1.2)

however, I could not find the similar option for Flex API. I wonder if there is something else which allow me to force output image generated on server and url transferred to client.

Is there any sample code for that?

Thanks.
Tags (2)
0 Kudos
3 Replies
DasaPaddock
Esri Regular Contributor
0 Kudos
HongTang
Deactivated User
I am trying it. Do you have any sample code for this?

I don't know what the Response should be or how to do that part.

Thanks.


You can call ArcGISDynamicMapServiceLayer.exportMapImage()

See:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer...
0 Kudos
DasaPaddock
Esri Regular Contributor
The responder will be passed a MapImage. A mapImageExport event is also dispatched.
0 Kudos