JavaScript

mapControl.setMarkerDisplay Method

Syntax

mapObj.setMarkerDisplay(markerName, display);

Arguments

markerNamestring

The name of the marker to show or hide.

displayboolean

A true/false value. Defines whether the marker should be shown or hidden. If true, the marker will be displayed. If false, the marker will be hidden.

Description

Set the visibility of a marker.

Example

//get a pointer to the map control for variable 'mymap1'
var mapObj = {dialog.object}.getControl('mymap1');

if (mapObj) {
    // hide the marker 'myMarker1'
    mapObj.setMarkerDisplay('myMarker1',false);
}