(TMap.GetBounds Method)
Returns the visible rectangular region of the map view.
e.g.
var boundary = map0.GetBounds();
var X1 = boundary.latitude1;
var Y1 = boundary.longitude1;
var X2 = boundary.latitude2;
var Y2 = boundary.longitude2 ;
In the above example, X1 and Y1 are geographical coordinates for the top-left point of the map. X2 and Y2 are for the bottom-right.
GetBounds(): Object
<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"); var boundary = map0.GetBounds(); var X1 = boundary.latitude1; var Y1 = boundary.longitude1; var X2 = boundary.latitude2; var X2 = boundary.longitude2; </script>