MapChart.getArrowLayer

Syntax

getArrowLayer();

Description

The getArrowLayer method returns map arrows layer.

Comments

The method returns a value of 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 all available arrows in the map:

// Get arrows layer
var arrowLayer = map.getArrowLayer();
// Add all available arrows on the map
for (var i in map._MapArrows) {
    // Get arrow
    var arrowNode = map._MapArrows[i].getDomNode();
    // Add arrow on the map
    arrowLayer.appendChild(arrowNode);
};

After executing the example all available arrows are shown on the map:

See also:

MapChart