confused about clicking on a map

temiz temiz at DEPREM.GOV.TR
Fri Sep 3 03:04:33 EDT 2004


hello

I am confused about clicking on a map.

Should this click function reside in first php file or second php file ?
~~~~~~~~~~~~~~
function click2map ($click_x, $click_y, $current_extent) {
    global $map;

    $x_pct = ($click_x / $_GET['map-width']);
    $y_pct = 1 - ($click_y / $_GET['mapheight']);

    $x_map = $current_extent[0] + ( ($current_extent[2] -
$current_extent[0]) * $x_pct);
    $y_map = $current_extent[1] + ( ($current_extent[3] -
$current_extent[1]) * $y_pct);

    return array($x_map, $y_map);
}

~~~~~~~~~~~~~~~~~~~~


______________________________________
Inflex - installed on mailserver for domain @deprem.gov.tr
Queries to: postmaster at 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20040903/0c404aad/attachment.html


More information about the mapserver-users mailing list