MapChart.TopobaseSize

Syntax

TopobaseSize: Object;

Description

The TopobaseSize property determines map topobase size.

Comments

Property value is set with the setTopobaseSize method. The following parameters are used when calling the method: width and height - topobase width and height. Property value cannot be set from JSON.

Use the getTopobaseSize method to get the property value. The returned value is a JSON object that contains width and height fields.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Reduce topobase size by half:

// Get initial size of  map topobase
var topobaseSize = map.getTopobaseSize();
// Reduce topobase size by half
map.setTopobaseSize(topobaseSize.width / 2,
    topobaseSize.height / 2
);
// Refresh the map
map.refresh();

After executing the example topobase width and height are reduced by half:

See also:

MapChart