[Mapserver-users] map positioning -- help needed

Murat Isik muratisik at megatek.com.tr
Wed Nov 5 09:04:27 EST 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0110_01C3A3B6.7CF7DD20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thank you, but I dont think neither my web page nor my php can handle =
javascripts. I use mapserver 3.6, php 4.2.2 and while compiling I did =
nothing about java...
Unfornunately java is out of my league...
Maybe a php/mapscript code will be better.

Thanks anyway:)

Hvae a nice day.

Murat Isik
  ----- Original Message -----=20
  From: Palanisamy, Giri=20
  To: Murat Isik=20
  Sent: Wednesday, November 05, 2003 3:57 PM
  Subject: RE: [Mapserver-users] map positioning -- help needed


  There is a sample code in the Mpaserver users meeting,=20

  =20

  Here is how you do it in using javascript:

       =20

  <SCRIPT LANGUAGE=3D"JavaScript">

  =20

    function setbox_handler(name, minx, miny, maxx, maxy, redraw) {

      document.mapserv.imgbox.value =3D minx + " " + miny + " " + maxx + =
" " + maxy;

      document.mapserv.imgxy.value =3D minx + " " + miny;

      if (redraw) {

         document.mapserv.submit();

      }        =20

    }

    function seterror_handler(message) {

      alert(message);

    }    =20

        =20

    function newWindow(w){

      var =
win=3Dwindow.open(w,"New_Window","height=3D500,width=3D650,resizable,scro=
llbars,toolbar");

      win.window.focus();

    }

  =20

    var pansize =3D 0.80;

  =20

    function pan(direction) {   =20

      var x, y;

  =20

      if(direction =3D=3D 'n') {

        x =3D ([mapwidth]-1)/2.0;

        y =3D 0 - [mapheight]*pansize + [mapheight]/2.0;

      } else if(direction =3D=3D 'nw') {

        x =3D 0 - [mapwidth]*pansize + [mapwidth]/2.0;

        y =3D 0 - [mapheight]*pansize + [mapheight]/2.0;

      } else if(direction =3D=3D 'ne') {

        x =3D ([mapwidth]-1) + [mapwidth]*pansize - [mapwidth]/2.0;

        y =3D 0 - [mapheight]*pansize + [mapheight]/2.0;

      } else if(direction =3D=3D 's') {

        x =3D ([mapwidth]-1)/2.0;

        y =3D ([mapheight]-1) + [mapheight]*pansize - [mapheight]/2.0;

      } else if(direction =3D=3D 'sw') {

        x =3D 0 - [mapwidth]*pansize + [mapwidth]/2.0;

        y =3D ([mapheight]-1) + [mapheight]*pansize - [mapheight]/2.0;

      } else if(direction =3D=3D 'se') {

        x =3D ([mapwidth]-1) + [mapwidth]*pansize - [mapwidth]/2.0;

        y =3D ([mapheight]-1) + [mapheight]*pansize - [mapheight]/2.0;

      } else if(direction =3D=3D 'e') {

        x =3D ([mapwidth]-1) + [mapwidth]*pansize - [mapwidth]/2.0;

        y =3D ([mapheight]-1)/2.0;

      } else if(direction =3D=3D 'w') {

        x =3D 0 - [mapwidth]*pansize + [mapwidth]/2.0;

        y =3D ([mapheight]-1)/2.0;

      }

  =20

      document.mapserv.zoomdir[1].checked =3D true; // force pan

      document.mapserv.imgxy.value =3D x + " " + y;

      document.mapserv.submit();

    }        =20

   =20

   </SCRIPT>

  =20

  =20

  and in side your <html><body>

  =20

  <table width=3D"390" border=3D"0" cellspacing=3D"0" cellpadding=3D"0" =
align=3D"center" bgcolor=3D"#666666">

          <tr>

            <td align=3D"right" width=3D"18"><a =
href=3D"javascript:pan('nw')"><img src=3D"[root]/graphics/nw.gif" =
width=3D"18" height=3D"18" border=3D"0" alt=3D"pan northwest"></a></td>

            <td align=3D"center"><a href=3D"javascript:pan('n')"><img =
src=3D"[root]/graphics/n.gif" width=3D"23" height=3D"18" border=3D"0" =
alt=3D"pan north"></a></td>

            <td align=3D"left" width=3D"18"><a =
href=3D"javascript:pan('ne')"><img src=3D"[root]/graphics/ne.gif" =
width=3D"18" height=3D"18" border=3D"0" alt=3D"pan northeast"></a></td>

          </tr>

          <tr>

            <td align=3D"right" width=3D"18"><a =
href=3D"javascript:pan('w')"><img src=3D"[root]/graphics/w.gif" =
width=3D"18" height=3D"23" border=3D"0" alt=3D"pan west"></a></td>

            <td align=3D"center">

              <table cellpadding=3D"0" cellspacing=3D"0" border=3D"0">

                <tr>

                  <td colspan=3D"2">

                   <applet codebase=3D"/java/jBox" code=3D"jBox.class" =
width=3D"600" height=3D"600" name=3D"jBox" MAYSCRIPT>

                     <param name=3D"image" value=3D"http://[host][img]">

                   </applet>

                 </td>

               </tr>

             </table>

            <td>

            <td align=3D"left" width=3D"18"><a =
href=3D"javascript:pan('e')"><img src=3D"[root]/graphics/e.gif" =
width=3D"18" height=3D"23" border=3D"0" alt=3D"pan east"></a></td>

          </tr>

          <tr>

            <td align=3D"right" width=3D"18"><a =
href=3D"javascript:pan('sw')"><img src=3D"[root]/graphics/sw.gif" =
width=3D"18" height=3D"18" border=3D"0" alt=3D"pan southwest"></a></td>

            <td align=3D"center"><a href=3D"javascript:pan('s')"><img =
src=3D"[root]/graphics/s.gif" width=3D"23" height=3D"18" border=3D"0" =
alt=3D"pan south"></a></td>

            <td align=3D"left" width=3D"18"><a =
href=3D"javascript:pan('se')"><img src=3D"[root]/graphics/se.gif" =
width=3D"18" height=3D"18" border=3D"0" alt=3D"pan southeast"></a></td>

          </tr>

        </table>

  =20

  Giri

  =20

  -----Original Message-----
  From: mapserver-users-admin at lists.gis.umn.edu =
[mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of Murat Isik
  Sent: Wednesday, November 05, 2003 8:50 AM
  To: mapserver-users at lists.gis.umn.edu
  Subject: [Mapserver-users] map positioning -- help needed

  =20

  Hello,

  =20

  I have the following code at my hand and I am supposed to add map =
positioning property to it. It's like there will be more four buttons, =
right, left, up, down. When user presses any of them the map will move =
slightly to selected direction without changing the zoom factor. How do =
I add this to the code? Any ideas? Please, I urgently need help...

  =20

  Thanks in advance..

  =20

  Murat Isik

  =20

  =20

  <HEAD>
  <TITLE>MEGATEK</TITLE>
  </HEAD>
  <CENTER>
  <FORM METHOD=3DPOST ACTION=3D<?php echo $PHP_SELF?>>
  <H1>TEST SERVER</H1>
  <IMG SRC=3D"yeni_ust.gif">
  <P>
  <?php
  dl("php_mapscript.so");

  =20

  mysql_connect("213.74.112.162","root","sqlpass") or
          die ("Could not connect to database");

  =20

  mysql_select_db("gpstrack") or
          die("Could not select database");

  =20

  $val_zsize=3D3;
  $check_pan=3D"CHECKED";

  =20

  $shpFname =3D "target1";
  $shpFile =3D ms_newShapeFileObj($shpFname, MS_SHP_POINT);

  =20

  $shpFname1 =3D "target2";
  $shpFile1 =3D ms_newShapeFileObj($shpFname1, MS_SHP_POINT);

  =20

  $pt =3D ms_newPointObj();

  =20

  $i =3D 0;

  =20

  $result =3D mysql_query("select * from track3") or
          die (mysql_error());

  =20


  $x[0]=3D0;
  $y[0]=3D0;

  =20

  while ($row =3D mysql_fetch_array($result))
  {
  ++$i;
  $test_x[$i] =3D $row["lodegrees"]+$row["lominutes"]/60;
  $test_y[$i] =3D $row["ldegrees"]+$row["lminutes"]/60;
  file://echo $row["lominutes"];
  file://echo "<br>\n";

  =20


  if($test_x[$i]=3D=3D$x[$i-1] || $test_y[$i]=3D=3D$y[$i-1])
  {
  --$i;
  }else
  {

  =20

  $x[$i] =3D $test_x[$i];
  $y[$i] =3D $test_y[$i];

  =20

  }

  =20

  }
  mysql_free_result($result);

  =20


  for($k=3D1;$k<=3D$i-1;++$k)
  {
  $pt->setXY($x[$k], $y[$k]);
  $shpFile->addPoint($pt);
  };

  =20

  $pt->setXY($x[$i], $y[$i]);
  $shpFile1->addPoint($pt);

  =20


  $shpFile->free();
  $shpFile1->free();

  =20

  $def =3Darray(array("UNIQID", "C", 13),array("NOM", "C", 128));
  $dbfFile =3D dbase_create($shpFname.".dbf", $def);
  dbase_add_record($dbfFile, array("1","TEST"));

  =20

  $def =3Darray(array("UNIQID", "C", 13),array("NOM", "C", 128));
  $dbfFile =3D dbase_create($shpFname1.".dbf", $def);
  dbase_add_record($dbfFile, array("1","TEST"));

  =20

  $myMap =3D ms_newMapObj("demo_try.map");

  =20

  #$myLayer =3D $myMap->getLayerByName("target1");
  #$myLayer->set("data", $shpFname);
  #$myLayer->set('status', MS_ON);

  =20


  if ( isset($HTTP_POST_VARS["mapa_x"]) && =
isset($HTTP_POST_VARS["mapa_y"])
        && !isset($HTTP_POST_VARS["full"]) ) {

  =20

   //     $extent_to_set =3D explode(" ",$HTTP_POST_VARS["extent"]);

  =20


  $extent_to_set[0] =3D 29.057;
  $extent_to_set[1] =3D 40.954;
  $extent_to_set[2] =3D 29.143;
  $extent_to_set[3] =3D 40.999;

  =20


    $myMap->setextent($extent_to_set[0],$extent_to_set[1],
                       $extent_to_set[2],$extent_to_set[3]);

  =20

        $my_point =3D ms_newpointObj();
        =
$my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]);

  =20

        $my_extent =3D ms_newrectObj();

  =20

        $my_extent->setextent($extent_to_set[0],$extent_to_set[1],
                                $extent_to_set[2],$extent_to_set[3]);

  =20

        $zoom_factor =3D =
$HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"];
        if ($zoom_factor =3D=3D 0) {
                $zoom_factor =3D 1;
                $check_pan =3D "CHECKED";
                $check_zout =3D "";
                $check_zin =3D "";
        } else if ($zoom_factor < 0) {
                $check_pan =3D "";
                $check_zout =3D "CHECKED";
                $check_zin =3D "";
        } else {
                $check_pan =3D "";
                $check_zout =3D "";
                $check_zin =3D "CHECKED";
        }

  =20

        $val_zsize =3D abs($zoom_factor);

  =20

        =
$myMap->zoompoint($zoom_factor,$my_point,$myMap->width,$myMap->height,
                        $my_extent);

  =20

  }
  $img =3D $myMap->draw();
  $image_url =3D $img->saveWebImage(GIF,1,1,0);

  =20

  ?>
  <BODY>
  <center>
  <table border=3D0 cellspacing=3D0 cellpadding=3D4 bgcolor=3D"#FFFFFF">
  <tr>
  <td valign=3D"top" align=3Dcenter>
    <table cellpadding=3D"0" cellspacing=3D"5" border=3D"5">
      <tr><td colspan=3D"2"><INPUT NAME=3D"mapa" TYPE=3D"image" =
SRC=3D"<?php echo $image_url; ?>" width=3D600 height=3D600 =
border=3D0></td></tr>
      <tr>
   <TR>
        <TD>
                Pan
        </TD>
        <TD>
                <INPUT TYPE=3DRADIO NAME=3D"zoom" VALUE=3D0 <?php echo =
$check_pan?>>
        </TD>
   </TR>
   <TR>
        <TD>
                Zoom In
        </TD>
        <TD>
                <INPUT TYPE=3DRADIO NAME=3D"zoom" VALUE=3D1 <?php echo =
$check_zin?>>
        </TD>
   </TR>
   <TR>
        <TD>
                Zoom Out
        </TD>
        <TD>
                <INPUT TYPE=3DRADIO NAME=3D"zoom" VALUE=3D-1 <?php echo =
$check_zout?>>
        </TD>
   </TR>
   <TR>
        <TD>
                Zoom Size
        </TD>
        <TD>
                <INPUT TYPE=3DTEXT NAME=3D"zsize" VALUE=3D"<?php echo =
$val_zsize?>"
                SIZE=3D2>
        </TD>
   </TR>
   <TR>
        <TD>
                Full Extent
        </TD>
        <TD>
                <INPUT TYPE=3DSUBMIT NAME=3D"full" VALUE=3D"Go"
                SIZE=3D2>
        </TD>
  </TABLE>
  <INPUT TYPE=3DHIDDEN NAME=3D"extent" VALUE=3D"<?php echo =
$extent_to_html?>">
  </FORM>
  </CENTER>

  =20

  </BODY>
  </HTML>


------=_NextPart_000_0110_01C3A3B6.7CF7DD20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3700.6699" name=3DGENERATOR>
<STYLE>@font-face {
	font-family: Sendnya;
}
@font-face {
	font-family: Tahoma;
}
P.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
LI.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
DIV.MsoNormal {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: blue; TEXT-DECORATION: underline
}
P.MsoAutoSig {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
LI.MsoAutoSig {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
DIV.MsoAutoSig {
	FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt
}
SPAN.EmailStyle17 {
	COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY bgColor=3Dwhite lang=3DEN-US link=3Dblue vLink=3Dblue>
<DIV><FONT face=3DArial size=3D2>Thank you, but I dont think neither my =
web page nor=20
my php can handle javascripts. I use mapserver 3.6, php 4.2.2 and while=20
compiling I did nothing about java...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Unfornunately java is out of my=20
league...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Maybe a php/mapscript code will be=20
better.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks anyway:)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hvae a nice day.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Murat Isik</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:palanisamyg at ornl.gov" =
title=3Dpalanisamyg at ornl.gov>Palanisamy,=20
  Giri</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20
  href=3D"mailto:muratisik at megatek.com.tr" =
title=3Dmuratisik at megatek.com.tr>Murat=20
  Isik</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, November 05, =
2003 3:57=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [Mapserver-users] =
map=20
  positioning -- help needed</DIV>
  <DIV><BR></DIV>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">There is a =
sample=20
  code in the Mpaserver users meeting, </SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">Here is how =
you do it=20
  in using javascript:</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  </SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&lt;SCRIPT=20
  LANGUAGE=3D"JavaScript"&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp; =
function=20
  setbox_handler(name, minx, miny, maxx, maxy, redraw) =
{</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  document.mapserv.imgbox.value =3D minx + " " + miny + " " + maxx + " " =
+=20
  maxy;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  document.mapserv.imgxy.value =3D minx + " " + miny;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp; if=20
  (redraw) {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  document.mapserv.submit();</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;=20
  }</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp; =
function=20
  seterror_handler(message) {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  alert(message);</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;=20
  }&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  </SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp; =
function=20
  newWindow(w){</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  var=20
  =
win=3Dwindow.open(w,"New_Window","height=3D500,width=3D650,resizable,scro=
llbars,toolbar");</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  win.window.focus();</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;=20
  }</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp; var =
pansize =3D=20
  0.80;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp; =
function=20
  pan(direction) {&nbsp;&nbsp;&nbsp; </SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  var x, y;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  if(direction =3D=3D 'n') {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  x =3D ([mapwidth]-1)/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  y =3D 0 - [mapheight]*pansize + [mapheight]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp; }=20
  else if(direction =3D=3D 'nw') {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  x =3D 0 - [mapwidth]*pansize + [mapwidth]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  y =3D 0 - [mapheight]*pansize + [mapheight]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp; }=20
  else if(direction =3D=3D 'ne') {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  x =3D ([mapwidth]-1) + [mapwidth]*pansize - =
[mapwidth]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  y =3D 0 - [mapheight]*pansize + [mapheight]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp; }=20
  else if(direction =3D=3D 's') {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  x =3D ([mapwidth]-1)/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  y =3D ([mapheight]-1) + [mapheight]*pansize - =
[mapheight]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp; }=20
  else if(direction =3D=3D 'sw') {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  x =3D 0 - [mapwidth]*pansize + [mapwidth]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  y =3D ([mapheight]-1) + [mapheight]*pansize - =
[mapheight]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp; }=20
  else if(direction =3D=3D 'se') {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  x =3D ([mapwidth]-1) + [mapwidth]*pansize - =
[mapwidth]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  y =3D ([mapheight]-1) + [mapheight]*pansize - =
[mapheight]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp; }=20
  else if(direction =3D=3D 'e') {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  x =3D ([mapwidth]-1) + [mapwidth]*pansize - =
[mapwidth]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  y =3D ([mapheight]-1)/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp; }=20
  else if(direction =3D=3D 'w') {</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  x =3D 0 - [mapwidth]*pansize + [mapwidth]/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  y =3D ([mapheight]-1)/2.0;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  }</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  document.mapserv.zoomdir[1].checked =3D true; // force =
pan</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  document.mapserv.imgxy.value =3D x + " " + y;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;=20
  document.mapserv.submit();</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;=20
  }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&nbsp;=20
  </SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&lt;/SCRIPT&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">and in side =
your=20
  &lt;html&gt;&lt;body&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: 10pt">&lt;table =
width=3D"390"=20
  border=3D"0" cellspacing=3D"0" cellpadding=3D"0" align=3D"center"=20
  bgcolor=3D"#666666"&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;tr&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"right" width=3D"18"&gt;&lt;a=20
  href=3D"javascript:pan('nw')"&gt;&lt;img =
src=3D"[root]/graphics/nw.gif" width=3D"18"=20
  height=3D"18" border=3D"0" alt=3D"pan=20
  northwest"&gt;&lt;/a&gt;&lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"center"&gt;&lt;a =
href=3D"javascript:pan('n')"&gt;&lt;img=20
  src=3D"[root]/graphics/n.gif" width=3D"23" height=3D"18" border=3D"0" =
alt=3D"pan=20
  north"&gt;&lt;/a&gt;&lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"left" width=3D"18"&gt;&lt;a =
href=3D"javascript:pan('ne')"&gt;&lt;img=20
  src=3D"[root]/graphics/ne.gif" width=3D"18" height=3D"18" border=3D"0" =
alt=3D"pan=20
  northeast"&gt;&lt;/a&gt;&lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/tr&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;tr&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"right" width=3D"18"&gt;&lt;a =
href=3D"javascript:pan('w')"&gt;&lt;img=20
  src=3D"[root]/graphics/w.gif" width=3D"18" height=3D"23" border=3D"0" =
alt=3D"pan=20
  west"&gt;&lt;/a&gt;&lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"center"&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

  &lt;table cellpadding=3D"0" cellspacing=3D"0" =
border=3D"0"&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
  &lt;tr&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td colspan=3D"2"&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;applet codebase=3D"/java/jBox" code=3D"jBox.class" width=3D"600" =
height=3D"600"=20
  name=3D"jBox" MAYSCRIPT&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;param name=3D"image" =
value=3D"http://[host][img]"&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/applet&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;=20
  &lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
  &lt;/tr&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/table&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"left" width=3D"18"&gt;&lt;a =
href=3D"javascript:pan('e')"&gt;&lt;img=20
  src=3D"[root]/graphics/e.gif" width=3D"18" height=3D"23" border=3D"0" =
alt=3D"pan=20
  east"&gt;&lt;/a&gt;&lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/tr&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;tr&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"right" width=3D"18"&gt;&lt;a=20
  href=3D"javascript:pan('sw')"&gt;&lt;img =
src=3D"[root]/graphics/sw.gif" width=3D"18"=20
  height=3D"18" border=3D"0" alt=3D"pan=20
  southwest"&gt;&lt;/a&gt;&lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"center"&gt;&lt;a =
href=3D"javascript:pan('s')"&gt;&lt;img=20
  src=3D"[root]/graphics/s.gif" width=3D"23" height=3D"18" border=3D"0" =
alt=3D"pan=20
  south"&gt;&lt;/a&gt;&lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;td align=3D"left" width=3D"18"&gt;&lt;a =
href=3D"javascript:pan('se')"&gt;&lt;img=20
  src=3D"[root]/graphics/se.gif" width=3D"18" height=3D"18" border=3D"0" =
alt=3D"pan=20
  southeast"&gt;&lt;/a&gt;&lt;/td&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/tr&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/table&gt;</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <DIV>
  <P class=3DMsoAutoSig><FONT color=3Dnavy face=3D"Times New Roman" =
size=3D3><SPAN=20
  style=3D"COLOR: navy; FONT-SIZE: 12pt">Giri</SPAN></FONT></P></DIV>
  <P class=3DMsoNormal><FONT color=3Dnavy face=3DArial size=3D2><SPAN=20
  style=3D"COLOR: navy; FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;</SPAN></FONT></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DTahoma =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Tahoma; FONT-SIZE: 10pt">-----Original=20
  Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: bold">From:</SPAN></B>=20
  mapserver-users-admin at lists.gis.umn.edu=20
  [mailto:mapserver-users-admin at lists.gis.umn.edu] <B><SPAN=20
  style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Murat =
Isik<BR><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, November 05, =
2003 8:50=20
  AM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>=20
  mapserver-users at lists.gis.umn.edu<BR><B><SPAN=20
  style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> [Mapserver-users] map=20
  positioning -- help needed</SPAN></FONT></P>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></P>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">Hello,</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">I have the following =
code at my=20
  hand and I am supposed to add map&nbsp;positioning property to it. =
It's like=20
  there will be more four buttons, right, left, up, down. When user =
presses any=20
  of them the map will move slightly to selected direction without =
changing the=20
  zoom factor. How do I add this to the code? Any ideas? Please, I =
urgently need=20
  help...</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Thanks in=20
  advance..</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Murat =
Isik</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&lt;HEAD&gt;<BR>&lt;TITLE&gt;MEGATEK&lt;/TITLE&gt;<BR>&lt;/HEAD&gt;=
<BR>&lt;CENTER&gt;<BR>&lt;FORM=20
  METHOD=3DPOST ACTION=3D&lt;?php echo =
$PHP_SELF?&gt;&gt;<BR>&lt;H1&gt;TEST=20
  SERVER&lt;/H1&gt;<BR>&lt;IMG=20
  =
SRC=3D"yeni_ust.gif"&gt;<BR>&lt;P&gt;<BR>&lt;?php<BR>dl("php_mapscript.so=
");</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">mysql_connect("213.74.112.162","root","sqlpass")=20
  or<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; die ("Could not =
connect to=20
  database");</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">mysql_select_db("gpstrack")=20
  or<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; die("Could not select =

  database");</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">$val_zsize=3D3;<BR>$check_pan=3D"CHECKED";</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$shpFname =3D =
"target1";<BR>$shpFile=20
  =3D ms_newShapeFileObj($shpFname, =
MS_SHP_POINT);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$shpFname1 =3D=20
  "target2";<BR>$shpFile1 =3D ms_newShapeFileObj($shpFname1,=20
  MS_SHP_POINT);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$pt =3D=20
  ms_newPointObj();</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$i =3D =
0;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$result =3D =
mysql_query("select *=20
  from track3") or<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; die=20
  (mysql_error());</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><BR>$x[0]=3D0;<BR>$y[0]=3D0;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">while ($row =3D=20
  mysql_fetch_array($result))<BR>{<BR>++$i;<BR>$test_x[$i] =3D=20
  $row["lodegrees"]+$row["lominutes"]/60;<BR>$test_y[$i] =3D=20
  $row["ldegrees"]+$row["lminutes"]/60;<BR><A=20
  href=3D"file:///\\echo">file://echo</A> $row["lominutes"];<BR><A=20
  href=3D"file:///\\echo">file://echo</A> =
"&lt;br&gt;\n";</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><BR>if($test_x[$i]=3D=3D$x[$i-1] ||=20
  =
$test_y[$i]=3D=3D$y[$i-1])<BR>{<BR>--$i;<BR>}else<BR>{</SPAN></FONT></P><=
/DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$x[$i] =3D =
$test_x[$i];<BR>$y[$i] =3D=20
  $test_y[$i];</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">}</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">}<BR>mysql_free_result($result);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><BR>for($k=3D1;$k&lt;=3D$i-1;++$k)<BR>{<BR>$pt-&gt;setXY($x[$k],=20
  $y[$k]);<BR>$shpFile-&gt;addPoint($pt);<BR>};</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$pt-&gt;setXY($x[$i],=20
  $y[$i]);<BR>$shpFile1-&gt;addPoint($pt);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><BR>$shpFile-&gt;free();<BR>$shpFile1-&gt;free();</SPAN></FONT></P>=
</DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$def =
=3Darray(array("UNIQID", "C",=20
  13),array("NOM", "C", 128));<BR>$dbfFile =3D =
dbase_create($shpFname.".dbf",=20
  $def);<BR>dbase_add_record($dbfFile,=20
  array("1","TEST"));</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$def =
=3Darray(array("UNIQID", "C",=20
  13),array("NOM", "C", 128));<BR>$dbfFile =3D =
dbase_create($shpFname1.".dbf",=20
  $def);<BR>dbase_add_record($dbfFile,=20
  array("1","TEST"));</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">$myMap =3D=20
  ms_newMapObj("demo_try.map");</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">#$myLayer =3D=20
  $myMap-&gt;getLayerByName("target1");<BR>#$myLayer-&gt;set("data",=20
  $shpFname);<BR>#$myLayer-&gt;set('status', =
MS_ON);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt"><BR>if (=20
  isset($HTTP_POST_VARS["mapa_x"]) &amp;&amp;=20
  isset($HTTP_POST_VARS["mapa_y"])<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&amp;&amp;=20
  !isset($HTTP_POST_VARS["full"]) ) {</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;=20
  $extent_to_set =3D explode("=20
  ",$HTTP_POST_VARS["extent"]);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt"><BR>$extent_to_set[0] =
=3D=20
  29.057;<BR>$extent_to_set[1] =3D 40.954;<BR>$extent_to_set[2] =3D=20
  29.143;<BR>$extent_to_set[3] =3D 40.999;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt"><BR>&nbsp;=20
  =
$myMap-&gt;setextent($extent_to_set[0],$extent_to_set[1],<BR>&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  $extent_to_set[2],$extent_to_set[3]);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  $my_point =3D ms_newpointObj();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
$my_point-&gt;setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]);=
</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  $my_extent =3D ms_newrectObj();</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
$my_extent-&gt;setextent($extent_to_set[0],$extent_to_set[1],<BR>&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
  $extent_to_set[2],$extent_to_set[3]);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  $zoom_factor =3D=20
  =
$HTTP_POST_VARS["zoom"]*$HTTP_POST_VARS["zsize"];<BR>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
  if ($zoom_factor =3D=3D 0)=20
  =
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
  $zoom_factor =3D=20
  =
1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
  $check_pan =3D=20
  =
"CHECKED";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  $check_zout =3D=20
  =
"";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
  $check_zin =3D "";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else if =
($zoom_factor=20
  &lt; 0)=20
  =
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
  $check_pan =3D=20
  =
"";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
  $check_zout =3D=20
  =
"CHECKED";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  $check_zin =3D "";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else=20
  =
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
  $check_pan =3D=20
  =
"";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
  $check_zout =3D=20
  =
"";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
  $check_zin =3D "CHECKED";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  }</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  $val_zsize =3D abs($zoom_factor);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
$myMap-&gt;zoompoint($zoom_factor,$my_point,$myMap-&gt;width,$myMap-&gt;h=
eight,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  $my_extent);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">}<BR>$img =3D=20
  $myMap-&gt;draw();<BR>$image_url =3D=20
  $img-&gt;saveWebImage(GIF,1,1,0);</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">?&gt;<BR>&lt;BODY&gt;<BR>&lt;center&gt;<BR>&lt;table=20
  border=3D0 cellspacing=3D0 cellpadding=3D4=20
  bgcolor=3D"#FFFFFF"&gt;<BR>&lt;tr&gt;<BR>&lt;td valign=3D"top"=20
  align=3Dcenter&gt;<BR>&nbsp; &lt;table cellpadding=3D"0" =
cellspacing=3D"5"=20
  border=3D"5"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;tr&gt;&lt;td =
colspan=3D"2"&gt;&lt;INPUT=20
  NAME=3D"mapa" TYPE=3D"image" SRC=3D"&lt;?php echo $image_url; ?&gt;" =
width=3D600=20
  height=3D600 =
border=3D0&gt;&lt;/td&gt;&lt;/tr&gt;<BR>&nbsp;&nbsp;&nbsp;=20
  &lt;tr&gt;<BR>&nbsp;&lt;TR&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  Pan<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  &lt;INPUT TYPE=3DRADIO NAME=3D"zoom" VALUE=3D0 &lt;?php echo=20
  $check_pan?&gt;&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;/TD&gt;<BR>&nbsp;&lt;/TR&gt;<BR>&nbsp;&lt;TR&gt;<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  Zoom In<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  &lt;INPUT TYPE=3DRADIO NAME=3D"zoom" VALUE=3D1 &lt;?php echo=20
  $check_zin?&gt;&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;/TD&gt;<BR>&nbsp;&lt;/TR&gt;<BR>&nbsp;&lt;TR&gt;<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  Zoom Out<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  &lt;INPUT TYPE=3DRADIO NAME=3D"zoom" VALUE=3D-1 &lt;?php echo=20
  $check_zout?&gt;&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;/TD&gt;<BR>&nbsp;&lt;/TR&gt;<BR>&nbsp;&lt;TR&gt;<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  Zoom Size<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  &lt;INPUT TYPE=3DTEXT NAME=3D"zsize" VALUE=3D"&lt;?php echo=20
  =
$val_zsize?&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
  SIZE=3D2&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;/TD&gt;<BR>&nbsp;&lt;/TR&gt;<BR>&nbsp;&lt;TR&gt;<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  Full Extent<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
&lt;TD&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;=20
  &lt;INPUT TYPE=3DSUBMIT NAME=3D"full"=20
  =
VALUE=3D"Go"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
  SIZE=3D2&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;/TD&gt;<BR>&lt;/TABLE&gt;<BR>&lt;INPUT TYPE=3DHIDDEN =
NAME=3D"extent"=20
  VALUE=3D"&lt;?php echo=20
  =
$extent_to_html?&gt;"&gt;<BR>&lt;/FORM&gt;<BR>&lt;/CENTER&gt;</SPAN></FON=
T></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
  size=3D3><SPAN style=3D"FONT-SIZE: =
12pt">&nbsp;</SPAN></FONT></P></DIV>
  <DIV>
  <P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">&lt;/BODY&gt;<BR>&lt;/HTML&gt;</SPAN></FONT></P></DIV></DIV></BLOCK=
QUOTE></BODY></HTML>

------=_NextPart_000_0110_01C3A3B6.7CF7DD20--




More information about the mapserver-users mailing list