JavaScript
mapControl.showMarkerDetail Method
Syntax
mapObj.showMarkerDetail(markerName);
Arguments
- markerNamestring
The name of the marker to show details.
Description
Opens the marker's info box.
Example
//get a pointer to the map control for variable 'mymap1' var mapObj = {dialog.object}.getControl('mymap1'); if (mapObj) { // show the info box for the marker 'myMarker1' mapObj.showMarkerDetail('myMarker1'); } //In some cases you might find that you want to wrap this command in a setTimeout() //to ensure that the marker has completed rendering. setTimeout(function() { var mapObj = {dialog.object}.getControl('mymap1'); if (mapObj) { mapObj.showMarkerDetail('myMarker1'); } },100);