TMap

(TMap.SetPanelVisibility Method)

Sets the visibility of a panel on the map.
SetPanelVisibility(strPanel, strVisible):Void

Parameters

  • strPanel : String - Name of the panel. Ex: "FLY", "OVERVIEW", "ZOOM", etc.
  • strVisible : String - Set the visibility of the panel specified by strPanel, "SHOW" to make the panel visible, "HIDE" to make the panel invisible.
  • Returns

  • Void
  • Example

    The following example sets the visibility of multiple panels.
    <div id="mapContainer"  style="width: 640px; height: 400px;"></div>
    <script type="text/javascript">
        var map0 = new TMap(mapContainer, 25.7590256665386, -80.3738769902151, 15, showAllPanels, 1, true, "", "hybrid");
       
        function showAllPanels() {
    	map0.SetPanelVisibility("FLY", "SHOW");
    	map0.SetPanelVisibility("OVERVIEW", "SHOW");
    	map0.SetPanelVisibility("ZOOM", "SHOW");
        }
    </script>
        

    See also

  • SetPanelPosition() Method