MapTerritoryTranscript Constructor

Syntax

PP.MapTerritoryTranscript (settings);

Parameters

settings. The JSON object with the values of the component properties.

Description

The MapTerritoryTranscript constructor creates an instance of the MapTerritoryTranscript class.

Example

To execute the example the HTML page must contain the MapChart component (see Map Layout on HTML Page) named map, XML file that contains map settings and the Russia.svg topobase.

Create the function createTerritoryTranscript(), executing which adds territory info in the map. The function is added after the string: map.addToNode(document.getElementById("map-content")).

function createTerritoryTranscript()

 {

   var territorySettings = {

  //complete setup of territory info in JSON format

   }

//select the map

   territorySettings.Chart = map;

//set item dictionary

   territorySettings.Dictionary = map.getItemsDictionary();

//create territory info

   var territoryTranscript = new PP.MapTerritoryTranscript(territorySettings);

//territory info rendering

   territoryTranscript.draw();

 }

//the function is executed on loading the page

 map.Loaded.add(createTerritoryTranscript);

Executing this example adds to the map the territory info appearance of which depends on the JSON settings .

See also:

MapTerritoryTranscript