EaxMapView.getMapSettings

Syntax

getMapSettings();

Description

The getMapSettings method returns settings of the express report map.

Comments

The method returns a JSON object that contains settings of the express report map.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component) and have a loaded map in the working area. Get settings of the express report map, and determine values of font color and family:

// Get express report map view
var eaxMapView = expressBox.getDataView().getMapView();
var settings = eaxMapView.getMapSettings();
console.log("Font color: " + settings["mapmaster.stylespanel.fontcolor"].Value);
console.log("Font family: " + settings["mapmaster.stylespanel.fontfamily"].Value);

After executing the example the browser console displays font color and family:

Font color: #000000
Font family: Arial

See also:

EaxMapView