TMap

(TMap.SetPanelPosition Method)

Sets the position of a panel to the position on the map specified by argument of x coornate and y coordinate.
SetNavigationPanelPosition(strPanel, x coordinate, y coordinate):Void

Parameters

  • strPanel : String - Specify the name of the panel you want to move. Ex: "FLY", "ZOOM", "OVERVIEW", etc.
  • x coordinate : Number - Set the x coordinate of the Navigation Panel's position on the map.
  • y coordinate : Number - Set the y coordinate of the Navigation Panel's position on the map.
  • Returns

  • Void
  • Example

    The following example set the position of a Panel on the map.
    <div id="mapContainer"  style="width: 640px; height: 400px;"></div>
    <script type="text/javascript">
        var map0 = new TMap(mapContainer, 25.7590256665386, -80.3738769902151, 15, mapLoaded, 1, true, "", "hybrid");
       
          function mapLoaded() {
            map0.SetPanelVisibility("FLY", "SHOW");
            map0.SetPanelPosition("FLY", NavX.value , NavY.value);
        }
        
    </script>
        

    See also

  • SetPanelVisibility() Method