getMilestoneLayer();
The getMilestoneLayer method returns the map milestones layer.
The method returns a value of the SVGElement type.
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: