EaxMdService.getTopobase

Syntax

getTopobase(report: PP.Exp.EaxAnalyzer, mapkey: Number, typeTopobase: PP.MapChartType, callback: PP.Delegate);

Parameters

report. Express report, for which the topobase is loaded.

mapkey. Key of the express report map.

typeTopobase. Type of the map, for which the user loads topobase.

callback. Callback function. Optional parameter.

Description

The getTopobase method returns topobase of an express report map.

Comments

The method returns a value of the String type.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component), the report must also have a map replaced with a map in the SVG format. Go to the workspace of the Map view. Get topobase of express report map:

// Get service to work with express report
var eaxMdService = expressBox.getDataView().getService();
// Set topobase type
var mapChartType = PP.Ui.MapChartType.SVG;
// Get express report map topobase
console.log(eaxMdService.getTopobase(expressBox.getSource(), expressBox.getSource().getTopobaseOd().k, mapChartType));

After executing the example topobase of the express report map is output to the browser console as a string. Seeelow some output snippet:

<svg version="1.1" xmlns:p5="http://www.fsight.ru" width="988.523px" height="593.97px" xml:space="preserve" proportionality="0.6512" xmlns="http://www.w3.org/2000/svg">
<g p5:ItemType="Layer" id="RootLayer" flags="0">
<g id="Regions" p5:ItemType="Layer" flags="0">

...

See also:

EaxMdService