MapChart.getMarkerLayer

Syntax

getMarkerLayer();

Description

The getMarkerLayer method returns map markers layer.

Comments

The method returns a value of the SVGElement type.

Example

To execute the example HTML page must contain the MapChart component named map (see MapMarker Constructor). Set opacity of 50% for marker layer:

// Get marker layer
markerLayer = map.getMarkerLayer();
// Set layer opacity to 50%
markerLayer.setOpacity(0.5);

As a result of executing the example, all markers available on the map were shown with opacity equal to 50%:

See also:

MapChart