PanTo

(TMap.PanTo Method)

Changes the center point of the map to the given location.
public PanTo(latitude:Number,longitude:Number):Void

Parameters

  • latitude : Number - Set the latitude of the center point on the map.
  • longitude : Number - Set the longitude of the center point on the map.
  • Example

    The following example shows how to change the center point of the map to the given location.
    <div id="mapContainer"  style="width: 640px; height: 400px;"></div>
    <script type="text/javascript">
        var map0 = new TMap(mapContainer, 25.7590256665386, -80.3738769902151, 15, "", 1, true, "", "hybrid");
        map0.PanTo(25.7590256665386,80.3738769902151);
        
    </script>
        

    See also

  • PanToAni()

    See example

  • Panning