The following XML attributes of <map> element are used to configure all aspects of export map.

 

Attribute Name Type Description
Core export functionality related attributes
exportEnabled Boolean (0/1) Whether the map will allow exporting to images/PDFs?
exportShowMenuItem Boolean (0/1) Whether the menu items related to export (e.g., Save as JPEG etc.) will appear in the context menu of map.
exportFormats String

List of formats that the map will show in context menu, along with label for each one.

The attribute value should be a delimiter separated key-value pair. The delimiter character to be used is '|' (pipe character). The syntax for the attribute value is as follows:
KEY=Value[|KEY=Value]*

Example: The code required to enable PNG, JPG and PDF type of export with custom context-menu message for PNG and PDF.

exportType=”PNG=Export as High Quality Image;JPG;PDF=Export as PDF File”

exportAtClient Boolean (0/1) Whether to use client side export handlers, or server side export handlers
exportHandler String

In case of server side exporting, this refers to the path of the server-side export handler (the ready-to-use scripts that we provide).

In case of client-side exporting, this refers to the DOM-Id of FusionMaps Export component that is embedded in your web page, along with the map.

exportAction 'save' or 'download' In case of server-side exporting, the action specifies whether the exported image will be sent back to client as download, or whether it'll be saved on the server.
exportTargetWindow _self or _blank In case of server-side exporting and when using download as action, this lefts you configure whether the return image/PDF would open in same window (as an attachment for download), or whether it will open in a new window.
exportCallback String

Name of JavaScript function that'll be called back when export process has finished in case of:

  • Client side export
  • Batch export
  • Server-side export using 'save' as action
exportFileName String Using this attribute you can specify the name (excluding the extension) of the output (export) file.
     
Export Dialog configuration related attributes:
showExportDialog Boolean (0/1) Whether to show the export dialog during capture phase. If not, the map starts capturing process without the dialog visible.
exportDialogMessage String The message to be shown in the dialog box. The default is "Capturing Data : "
exportDialogColor Hex Color Background color of dialog box.
exportDialogBorderColor Hex Color Border color of dialog box.
exportDialogFontColor Hex Color Font color to be used for text in dialog.
exportDialogPBColor Hex Color Color of progress bar in dialog.