Example
 
 

The sample application contains a file named gotopoint.php that is designed to run in the script frame. The essential parts of gotopoint.php are:

<script language="javascript">

 

function OnPageLoad()

{

   parent.ZoomToView(<?= $_GET['X'] ?>,

   <?= $_GET['Y'] ?>,

   <?= $_GET['Scale'] ?>, true);

}

 

</script>

 

<body onLoad="OnPageLoad()">

 

</body>

To execute gotopoint.php from the task frame, insert code similar to the following:

$xLocation = -87.7116768; //

Or calculate values

$yLocation = 43.7766789973;

$mapScale = 2000;

echo "<p><a href=\"gotopoint.php?" .

  "X=$xLocation&Y=$yLocation&Scale=$mapScale\"" .

  "target=\"scriptFrame\">Click to position map</a></p>";