The export process, when using client-side Export Handlers, can be visualized as under:
 
Elements involved

For enabling export of map at client-side, we'll need to assemble the following elements:

  • The map itself embedded using FusionMaps JavaScript class (FusionMaps.js). Here, we assume that you have been able to generate the map for your page. If not, please refer to the relevant section of our documentation.
  • FusionMaps Export Component - This is named FCExporter.swf and is present in Download Package > Maps. You'll need to copy-paste this SWF to your server. A good location would be to place this SWF along with your map SWFs.
  • FusionMaps Export Component JavaScript class - This JavaScript class is named FusionMapsExportComponent.js and is present in Download Package > JSClass. Place it where you've placed FusionMaps.js on your website (though not necessary, but this helps you centralize all FusionMaps related JS files)

So let's quickly get started and setup a simple example that exports the map as an image at client-side.