Select to view content in your preferred language

Export Map REST Service help. (From Flex or .NET maybe?)

969
5
05-19-2010 07:21 AM
TonyCollins
Regular Contributor
Hi there,

I would like to enable the user to print an image from the Flex API, but all the attempts so far revolve around a snapshot of the map, which is not going to be good enough as I need the map printouts to scale!

On a recent Flex course at ESRI UK I was directed to the Export Map REST Service: http://servername/ArcGIS/rest/services/mapservice/MapServer/export?

Could someone please give me some direction as how to use this in ASP.NET or something as I would like to export multiple layers (dependant as what user has turned on in Flex app) and merge them together in ASP.NET?

Thanks for any help
Tony
0 Kudos
5 Replies
TonyContreras
Deactivated User
The application will have to build the Export Map request and send it to the REST endpoint. Here is the reference for that type of request.

Export Map (Operation):
http://resources.esri.com/help/9.3/arcgisserver/apis/rest/index.html?export.html
0 Kudos
TonyCollins
Regular Contributor
The application will have to build the Export Map request and send it to the REST endpoint. Here is the reference for that type of request.

Export Map (Operation):
http://resources.esri.com/help/9.3/arcgisserver/apis/rest/index.html?export.html



Hi Tony thanks for your reply,

I have been working from this, but my problem is that I can't find any simple documentation as to how to implement a call and get a response in perhaps .NET or Flex?

Thanks for any direction
Tony
0 Kudos
nicogis
MVP Alum
0 Kudos
TonyCollins
Regular Contributor
here you can see how call rest from .net
http://rexdotnet.blogspot.com/2009/11/using-arcgis-server-rest-api-in-net.html


THANKS Domenico that is exactly what I needed!!!
Images are now getting exported from ASP.NET!!!

Thanks again!
Tony
0 Kudos
BradOleson
Emerging Contributor
Hey Tony -

I have a need to do something similar, it sounds like.  I'm working to customize FlexViewer to view maps, but the print capabilities are limited.  Can you expound on your solution, perhaps even some code samples?  Thanks!

Brad
0 Kudos