<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
hello<br>
<br>
I am confused about clicking on a map.<br>
<br>
Should this click function reside in first php file or second php file ?<br>
~~~~~~~~~~~~~~<br>
<small>function click2map ($click_x, $click_y, $current_extent) {<br>
&nbsp;&nbsp;&nbsp; global $map;&nbsp;&nbsp;&nbsp; <br>
<br>
&nbsp;&nbsp;&nbsp; $x_pct = ($click_x / $_GET['map-width']);<br>
&nbsp;&nbsp;&nbsp; $y_pct = 1 - ($click_y / $_GET['mapheight']);<br>
&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; $x_map = $current_extent[0] + ( ($current_extent[2] -
$current_extent[0]) * $x_pct);<br>
&nbsp;&nbsp;&nbsp; $y_map = $current_extent[1] + ( ($current_extent[3] -
$current_extent[1]) * $y_pct);<br>
<br>
&nbsp;&nbsp;&nbsp; return array($x_map, $y_map);<br>
}<br>
<br>
~~~~~~~~~~~~~~~~~~~~<br>
</small>
<BR><PRE>

______________________________________
Inflex - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster@deprem.gov.tr

______________________________________
The views and opinions expressed in this e-mail message are the sender's own
and do not necessarily represent the views and the opinions of Earthquake Research Dept.
of General Directorate of Disaster Affairs.

Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C.
B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir.

</pre><BR></body>
</html>