ScaleBase.AutoCalculable

Syntax

AutoCalculable: Boolean

Description

The AutoCalculable property determines whether the scale is calculated automatically.

Comments

By default this property is set to True, and the scale is calculated automatically. If the value is set to False, the scale is not calculated automatically. The property is relent if the MapChart component is used together with map wizard (see Example of Creating the MapMaster and MapChart Component).

Example

To execute the example, the HTML page must contain the MapChart components named map and MapMaster (see Example of Creating the MapMaster and MapChart Components), XML file with settings of map and the Russia.svg topobase.

The XML file must contain settings of the fill factor that is the first located in the list of map factors. Fill background - dependency object, for which scale is set up.

Add the scaleSet() function to be executed on map loading:

function scaleSet() {

       scale = map.getFirstVisual().getBackground().getMapScale();

       scale.setAutoCalculable(false)

  };

map.Loaded.add(scaleSet);

 

After executing the example automatic scale calculation is disabled, the Auto radio button is deselected and the Precise Intervals radio button is selected instead in the Color tab of the map wizard.

See also:

ScaleBase