EaxMdService.Map

Syntax

Map: Object

Description

The Map property sets and gets report map metadata.

Comments

Property value can be set using the setMap method, and returned using the getMap method. Property value cannot be set from JSON.

To call the setMap method, specify the following arguments: report - sheet of the express report document, map - map, callback - callback function.

The following arguments are specified for the getMap method: report - sheet of express report document, callback - callback function.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component), and a map must be loaded in working area of the express report. Get information about this map:

// Get service to work with express report
var eaxMdService = expressBox.getService();
// Get express report document
var eaxAnalyzer = expressBox.getSource();
var metadata = eaxMdService.getMap(eaxAnalyzer);
if (metadata) {
    console.log("Objects that contains info on the express report map:");
    console.log(metadata);
} else {
    console.log("No information is available on the express report map.");
}

After executing the example the browser console displays an object that contains map metadata, or a message informing that no information on the map is available.

See also:

EaxMdService