ScaleBase.getItemValue

Syntax

getItemValue (value);

Parameters

value. Value by which you need to get a scale item.

Description

The getItemValue method returns scale item that corresponds to specified data value.

Example

To execute the example, the HTML page must contain the MapChart component (see Placing of Map on a HTML Page) named map, 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.

function scaleSet() {

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

                value = scale.getItemValue(20);

                scale.setItem(0, value);

                map.draw();

            }

            map.Loaded.add(scaleSet);

After executing the example on map loading the first scale item is set as equal to the scale item that corresponds to the value 20.

See also:

ScaleBase