ScaleBase.addValue

Syntax

addValue (value: Number);

Parameters

value. Scale value.

Description

The addValue method adds value of scale interval border.

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 that contains values of the Brush type.

function scaleSet() {

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

                  scale.clearValues();

                  scale.addValue(1.00);

                  scale.addValue(50.00);

                  scale.addValue(80.00);

          map.draw();

       }

      map.Loaded.add(scaleSet);

After executing the example scale values are changed, new scale values are displayed in the map legend:

See also:

ScaleBase