Select to view content in your preferred language

Save/Export Flex build map to esri layer package?

1184
3
03-28-2011 06:03 AM
JasonThiel
Emerging Contributor
I have a requirement to add a button to a flex api map that will allow the user to save/export the map as an esri layer package.  Thats the zip file containing data and imagery that ArcMap can generate. 

Has anybody done this in a Flex front end?  I can easily export to a pdf or image file.
Haven't seen anything about exporting to a package.
Tags (2)
0 Kudos
3 Replies
TomSchuller
Frequent Contributor
Hy,
I have written an PrintSOE which can already  make an export to mxd:
http://www.arcgis.com/home/item.html?id=6809086326ea4c76bf026a32bb9dd698

Do you have an ArcObjects code snippet to create an EsriLayerPackage?
I think that code can easily be integrated in the SOE.

This would be an interesting addon.

Tom
0 Kudos
TomSchuller
Frequent Contributor
Hy,
just to be sure:
  To you think on LayerPackage or MapPackage?

For our PrintSOE, a MapPackage would be possible to create with the GPTool "Package Map":
Packages a map document and all referenced data sources to create a single compressed .mpk file.


Tom
0 Kudos
TomSchuller
Frequent Contributor
Just add this functionality to the latest version:

  • ...

  • exporting to ArcMAP PackageLayer (beta; format=mpk)

  • ...

Download latest code (source+build) from:
http://www.arcgis.com/home/item.html...026a32bb9dd698
0 Kudos