I am trying your Export Map related examples provided in Download Package > Code > ExportMapSamples folder. None of them see to finish the final step. What is wrong?

Before trying the examples from our download package, you need to undertake the necessary setup steps as under:

  • When running the server-side examples, make sure that you've copied-pasted the relevant export handlers (server-side) to your server. Next, in each example XML, provide the path to that handler and then try again.
  • When running client-side examples, make sure that you've copied-pasted the examples (along with ../FusionMaps folder) to your server (either localhost or remote). The reason why they would not work on local files ystem is that Adobe Flash Player blocks Flash to JavaScript communication on local file system for security reasons, which FusionMaps uses for client-side exporting. If you need to over-ride that for a specific folder, you'll need to visit http://www.macromedia.com/support/documentation/en/flash player/help/settings_manager04.html and then in that interface add the folder containing our examples to the list of allowed folder.

If it still doesn't work, switch the debug mode of map to on and it'll be able to guide as to what might be wrong.

 
I have copied the server-side PHP or Ruby on Rails handlers, but they do not seem to generate images at all.
Make sure that you've GD library installed on your server in case of PHP, and RMagick in case of Ruby on Rails.
 
My PHP/Ruby on Rails server-side handlers are unable to generate PDFs
Make sure you've GZip library installed on your server in case of PHP, and zlib in case of Ruby on Rails.
 
I want to export the maps and save them on server without having to render the maps in browser. How can I do this?
This CANNOT be done. FusionMaps necessarily needs to render once in the browser, before any of the export handlers are called. This is because the maps are always generated at client-side. After that, it takes a snapshot to the client-side Export component or server-side Export scripts for generation of image/PDFs.
 
When creating an instance of FusionMaps Export Component, I do not see the UI at all. Instead, it shows me the text that I filled in my container DIV.

Make sure of the following:

  • You've Flash Player 10 installed. FusionMaps Export Component has been coded in Flash CS4 and needs Adobe Flash Player 10 to run.
  • You've included FusionMapsExportObject.js in your page (after FusionMaps.js)
  • The constructor of FusionMapsExportObject correctly specified the path to FCExporter.swf
  • The DIV which you've specified in Render(divId) call actually exists.
  • The JavaScript code that you've written to initialize the Export Component doesn't have any bugs

If nothing works, switch the debugMode of component to true (click here for details), and it'll show what went wrong.

 
When using some download tools (like DAP), I cannot download the image in case of server-side exports.
Yes- this is because they do not resend the POST data. So, you'll have to disable the same to allow download of map.
 
Instead of saving on server, can I directly email the map?
Not directly. But since we allow saving on server, you can write your own script to automatically email the saved image. This script can be placed in our server-side script, or externally.
 
Instead of just exporting the maps to PDF, I also want my HTML content to be a part of the PDF. How can I achieve that?
Currently, the only way would be to use a print PDF driver (like say PDF995). Since FusionMaps export component does not have access to anything that is contained in your browser window, it cannot export that as a PDF.
 
The maps in my PDF look a bit larger than my actual maps. Why?
The PDFs rendered by FusionMaps Export Handler is 72 DPI in PDF. The PDF viewer that you are using must have been set to a different Display Resolution (pixel/inch setting). A higher value would show the map bigger and blurred while a smaller value would reduce the map size. Please set the Resolution to 72 to see the correct map size.