EaxMapView.setTopobase

Syntax

setTopobase(value: String, type: PP.MapChartType);

Parameters

value. Topobase set for express report map.

type. Type of the map topobase of which is selected.

Description

The setTopobase method sets topobase for 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. Set topobase and refresh the express report map:

// Get express report map view
var mapView = expressBox.getDataView().getMapView();
// Handle the DataChanged event
var source = mapView.getSource();
// Determine type
var loadedType = PP.MapChart.Type.SVG;
// Get topobase
var topo = source.getTopobase(source.getTopobaseOd().k, loadedType);
// Set topobase for map
mapView.setTopobase(topo, loadedType);
// Refresh express report map
var arg = new PP.Mb.Ui.PropertyChangedEventArgs({    
    PropertyName: PP.Exp.Ui.ControlType.Map,
    Metadata: null,
    TypeUpdateData: PP.Exp.Ui.ViewTypeUpdate.Map
});
mapView.refresh(arg);

After executing the example the topobase is set and the express report map is refreshed.

See also:

EaxMapView