MapChart.getMilestoneLayer

Syntax

getMilestoneLayer();

Description

The getMilestoneLayer method returns the map milestones layer.

Comments

The method returns a value of the SVGElement type.

Example

To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Show milestones layer in the map:

// Get map milestone layer
var milestoneLayer = map.getMilestoneLayer();
// Get map area
var paper = map.getPaper();
// Add milestone layer to the map
paper.appendChild(milestoneLayer);

After executing the example milestones layer is shown on the map:

See also:

MapChart