Select to view content in your preferred language

A Snapshot Widget for FlexViewer 2.1

1224
10
10-23-2010 05:22 AM
ErwanCaradec
Emerging Contributor
This is a Snapshot widget for FlewViewer 2.1
wich allow you to take a snapshot from an area of the map and save it as JPEG or PNG file (with an optional geolocation world file in a zip archive)

View in the code gallery :
http://www.arcgis.com/home/item.html?id=3803b1ec34b446b684b80a067e4d133c

Erwan
Tags (2)
0 Kudos
10 Replies
ErwanCaradec
Emerging Contributor
Hi,
here is a new version for the FlexViewer 2.2

The selection rectangle is now movable and resizable.

http://www.arcgis.com/home/item.html?id=3803b1ec34b446b684b80a067e4d133c

Erwan
0 Kudos
EricVenden
Frequent Contributor
Erwan,

My image has a dark background.  Have you ever seen this behavior?  I haven't added any background color to my config.xml file.  Attached is a screen shot.

Thanks
Eric V
Guree, IL
0 Kudos
ErwanCaradec
Emerging Contributor
Eric,
i think your layer is transparent and your flexViewer as a white background, is'n it ?

When you save the image, (try as JPG and as PNG please) does the image saved have a black background too ?

Thanks

Erwan
0 Kudos
EricVenden
Frequent Contributor
Erwan,

Yes, the saved image in jpeg shows as black.  The png format looks fine.
My FlexViewer has a white background.  The map services I use as Basemap layers are tiled - PNG8 & JPEG

Thanks
Eric
0 Kudos
ErwanCaradec
Emerging Contributor
Eric,
coul'd you please post the REST end points of the basemap services used ?

Erwan.
0 Kudos
EricVenden
Frequent Contributor
Erwan,
I have 5 basemaps, none of which are publicly accessible.  I have all the basemaps tiled.  4 of the 5 are aerials and 1 is a "google-like" streets basemap.  How should I post the endpoints?  I have attached a PDF of one of them.

Thanks
Eric
0 Kudos
EricVenden
Frequent Contributor
Erwan,
Can you give me some guidance on why the background of the jpg image is black?
Thanks
Eric
0 Kudos
CarolineCochrane
Deactivated User
Hi, thank you very much for this useful widget. I wondered if tehre was a way to include the Overview map into the image if this is displayed in the map?

Thanks again,

Caroline
0 Kudos
ErwanCaradec
Emerging Contributor
@caroline1981 : Thanks for the suggestion, i'll include it in the TODO list.

@ericv : I reproduced your problem, whith a tiled service cached in a mixed format. I try to find a solution.

Edit : The JPEG Encoder in Action Script 3 does not support transparency .... you'll have to export in PNG if you need it.
0 Kudos