These attributes are used while calling the exportMap() function of any FusionMaps object. They are meant to be passed as simple JavaScript object (JSON-like property-list) whenever there is the exportAttributes in context.
Typical usage of these attributes is in exportAttributes of every new FusionMapsExportObject.
Example:
<script type="text/javascript"> var myExporter = new FusionMapsExportObject('myExporter', 'FusionMaps/FCExporter.swf');
// customize the exporter by modifying the exportAttributes
myExporter.exportAttributes.exportAtClient = '1';
myExporter.exportAttributes.exportFormat = 'PDF';
// render the UI
myExporter.Render('ExporterContainerID');
</script>
In the FusionMapsExportObject constructor, you can provide export Attributes in {key1: 'value1', key2: 'value2', ... } format.
Example:
var myComponent = new FusionMapsExportObject('myComponent', 'FusionMaps/FCexporter.swf', null
{ exportAtClient: '1', exportFormat: 'PDF' } );
Attribute Name | Value Type | Description | Default Value |
---|---|---|---|
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. |
undefined |
exportAtClient | boolean (0/1) |
Whether to use client side export handlers, or server side export handlers. Note: By default the value is set to 0 which means the export is supposed to be done at server-side. |
0 |
exportFormat | string enum ('PNG' / 'JPG' / 'PDF') |
You can choose the format in which the map is exported. |
PNG |
exportFileName | string | Using this attribute you can specify the name (excluding the extension) of the file to be exported. When server-side–save export is specified this attribute must provide the relative path of the destination file that is going to be saved to the server. |
|
exportAction | string enum ('download' / 'save') |
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. Note: Thus is only available for server side export. |
download |
exportTargetWindow | string enum ('_self' / '_blank') |
In case of server-side exporting and when using download as action, this lets 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. Note: Thus is only available for server side export. |
|
showExportDialog | boolean (0/1) |
Whether to show the export dialog during capture phase. If not, the map starts capturing process without the dialog visible. |
1 |
exportCallback | string | This attribute specifies the name of the callback JavaScript function which would be called when the export event is complete. The internal JavaScript function FC_Exported is the default method that will be called when no value specified. |
FC_Exported |