<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff 
size=2>Albert, </FONT></SPAN></DIV>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff size=2>You 
may want to look at how it is done in the dBox interface.</FONT></SPAN></DIV>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff size=2><A 
href="http://maps.dnr.state.mn.us/tools/dbox/">http://maps.dnr.state.mn.us/tools/dbox/</A></FONT></SPAN></DIV>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff size=2>In 
fact, you may just want to use dBox or modify it.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=718215615-02082006><FONT face=Arial color=#0000ff 
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer 
  Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of </B>Albert 
  Anderson<BR><B>Sent:</B> Wednesday, August 02, 2006 10:50 AM<BR><B>To:</B> 
  MAPSERVER-USERS@LISTS.UMN.EDU<BR><B>Subject:</B> Re: [UMN_MAPSERVER-USERS] 
  panning and zoomin and out, and ect<BR><BR></FONT></DIV>Hi,<BR><BR>Its not 
  working cause It doesnt do anything when I click the button.&nbsp; I got know 
  if I want my number to go negative. I am new to this.&nbsp; You told me to try 
  this i would try<BR>if(direction=='nw'){<BR>x = 1;<BR>y = 1;<BR>}<BR><BR>so do 
  I change my code that I have?&nbsp; else if(direction== 'nw') 
  {<BR>&nbsp;&nbsp; x = 0 + (309 * pansize)/2.0;<BR>&nbsp;&nbsp; y = 0 + (309 * 
  pansize)/2.0;<BR><BR>I dont know what I am doing?Could you help 
  me?<BR><BR>Thanks,<BR>Albert<BR><B><I>Brent Pedersen 
  &lt;bpederse@nature.Berkeley.EDU&gt;</I></B> wrote:
  <BLOCKQUOTE class=replbq 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">hi, 
    can you give more info on how it is not working?<BR>what happens?<BR>you may 
    want to check what x and y are coming out as.<BR>often + will concatenate 
    numbers instaed of adding.<BR><BR>also, are you sure you want x and y to go 
    negative as you<BR>have made them in 'nw' for example?<BR><BR>i would 
    try<BR>if(direction=='nw'){<BR>x = 1;<BR>y = 1;<BR>}<BR>which i think should 
    recenter you on the upper left corner of the map.<BR><BR><BR>On Wed, 2 Aug 
    2006, Albert Anderson wrote:<BR><BR>&gt; Hi,<BR>&gt; I put my code with this 
    email "hoping" for more than just it maybe in your map file or hidden 
    variables thats all.<BR>&gt;<BR>&gt; Thanks,<BR>&gt; Albert<BR>&gt;<BR>&gt; 
    Luis Treviño <LTREVINOH @gmail.com="">wrote: Albert:<BR>&gt; Maybe the 
    problem is in your map file or in the hidden variables of your 
    template.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 2006/8/1, Albert Anderson 
    <BART_DOGGERS @yahoo.com="">: Hi,<BR>&gt;<BR>&gt; I tried that code. I didnt 
    get it to work. Here is my code. Can you see if I need to do something else? 
    What else do I need?<BR>&gt; <BR>&gt;<BR>&gt; <!-- Panning Javascript here --><BR>&gt;
    <SCRIPT language=javascript type=text/javascript><br>>  var mapheight = 417;<br>>  var mapwidth = 309;<br>> 
 var pansize = 0.75;<br>><br>> function pan(direction) {<br>>  var x,y;<br>><br>> if(direction== 'n') {<br>>   x = (309-1)/2.0;<br>>   y = 0 - (417 * pansize)/2.0;<br>> } else if(direction== 'nw') {<br>>   x = 0 - (309 * pansize)/2.0;<br>>   y = 0 - (309 * pansize)/2.0;<br>> } else if(direction== 'ne') {<br>>   x = (309-1) + (309 * pansize)/2.0;<br>>   y = 0 - (417 * pansize)/2.0;<br>> } else if(direction== 's') {<br>>   x = (309-1)/2.0;<br>>   y = (417-1) + (417 * pansize)/2.0;<br>> } else if(direction== 'sw') {<br>>   x = 0 - (309 * pansize)/2.0;<br>>   y = (417-1) + (417 * pansize)/2.0;<br>> } else if(direction== 'se') {<br>>   x = (309-1) + (309 * pansize)/2.0;<br>>   y = (417-1) + (417 * pansize)/2.0;<br>> } else if(direction== 'e') {<br>>   x = (309-1) + (309 * pansize)/2.0;<br>>   y = (417-1)/2.0;<br>> } else if(direction== 'w') {<br>>   x = 0 - (309 * pansize)/2.0;<br>>   y = (417-1)/2.0;<br>>    }<br>><br>> document.mapserv.imgxy.value = x + " " + y;<br>>
 document.mapserv.submit();<br>>  }<br>><br>> </SCRIPT>
     <BR>&gt;<BR>&gt; </BART_DOGGERS></LTREVINOH>
    <TABLE width=368><BR>&gt; HEIGHT="460" BORDER="0" align="left" 
      CELLPADDING="0" CELLSPACING="0"&gt;<BR>&gt;<BR>&gt; 
      <TBODY><BR>&gt; 
      <TR><BR>&gt; 
        <TD align=left width=29 height=23><BR>&gt; VALIGN="top" 
          BGCOLOR="#e7a500"&gt;<A href="javascript:pan('nw')"><IMG 
          style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" 
          height=25 alt="pan nw" src="../images/cornerarrow5.gif" 
        width=25></A></TD><BR>&gt; 
        <TD align=middle bgColor=#e7a500><BR>&gt; VALIGN="top"&gt; 
          <DIV align=center><A href="javascript:pan('n')"><IMG 
          style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" 
          height=25 alt="pan north" src="../images/cornerarrow2.gif" 
          width=25></A></DIV></TD><BR>&gt; 
        <TD align=right width=30><BR>&gt; VALIGN="top" BGCOLOR="#e7a500"&gt;<A 
          href="javascript:pan('ne')"><IMG 
          style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" 
          height=25 alt="pan ne" src="../images/cornerarrow6.gif" 
        width=25></A></TD><BR>&gt; </TR><BR>&gt;<BR>&gt; 
      <TR><BR>&gt; 
        <TD align=left bgColor=#e7a500><BR>&gt; VALIGN="MIDDLE"&gt;<A 
          href="javascript:pan('w')"><IMG 
          style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" 
          height=25 alt="pan west" src="../images/cornerarrow1.gif" 
        width=25></A></TD><BR>&gt; 
        <TD class=mapappmidaln align=middle><BR>&gt; HEIGHT="413" 
          VALIGN="MIDDLE" WIDTH="309"&gt;<BR>&gt;<BR>&gt; <!-- calling
 for map here --><BR>&gt; <INPUT type=image height=417 width=309 
          src="%5Bimg%5D" border=1 name=img></TD><BR>&gt; 
        <TD align=right bgColor=#e7a500><BR>&gt; VALIGN="MIDDLE"&gt;
          <DIV align=left><A href="javascript:pan('e')"><IMG 
          style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" 
          height=25 alt="pan east" src="../images/cornerarrow3.gif" 
          width=25></A></DIV></TD><BR>&gt; </TR><BR>&gt; 
      <TR><BR>&gt; 
        <TD align=left height=21><BR>&gt; VALIGN="bottom" 
          BGCOLOR="#e7a500"&gt;<A href="javascript:pan('sw')"><IMG 
          style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" 
          height=25 alt="pan sw" src="../images/cornerarrow8.gif" 
        width=25></A></TD><BR>&gt; 
        <TD align=middle bgColor=#e7a500><BR>&gt; VALIGN="bottom"&gt; 
          <DIV align=center><A href="javascript:pan('s')"><IMG 
          style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" 
          height=25 alt="pan south" src="../images/cornerarrow3gif.gif" 
          width=25></A></DIV></TD><BR>&gt; 
        <TD align=right bgColor=#e7a500><BR>&gt; VALIGN="bottom"&gt;<A 
          href="javascript:pan('se')"><IMG 
          style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none" 
          height=25 alt="pan se" src="../images/cornerarrow7.gif" 
        width=25></A></TD><BR>&gt; 
    </TR></TBODY></TABLE><BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Luis Treviño 
    <LTREVINOH @gmail.com="">wrote:<BR>&gt;<BR>&gt; 2006/7/21, Albert Anderson 
    <BART_DOGGERS @yahoo.com="">: Hi,<BR>&gt;<BR>&gt; I figure out my images. 
    Does anyone have a _java script for using a image for panning. I have images 
    set for the corners of my map. I want to use them to pan.<BR>&gt;<BR>&gt; 
    You can use something like this, you have to handle your width and height of 
    your image:<BR>&gt; alto = height, ancho = width.<BR>&gt; function 
    paneo(direccion,alto,ancho) {<BR>&gt; var x,y;<BR>&gt; var pansize = 
    0.75;<BR>&gt; if(direccion == 'n') {<BR>&gt; x = (ancho-1)/2.0;<BR>&gt; y = 
    0 - (alto * pansize)/2.0;<BR>&gt; } else if(direccion == 'nw') {<BR>&gt; x = 
    0 - (ancho * pansize)/2.0;<BR>&gt; y = 0 - (ancho * pansize)/2.0;<BR>&gt; } 
    else if(direccion == 'ne') {<BR>&gt; x = (ancho-1) + (ancho * 
    pansize)/2.0;<BR>&gt; y = 0 - (alto * pansize)/2.0;<BR>&gt; } else 
    if(direccion == 's') {<BR>&gt; x = (ancho-1)/2.0;<BR>&gt; y = (alto-1) + 
    (alto * pansize)/2.0;<BR>&gt; } else if(direccion == 'sw') {<BR>&gt; x = 0 - 
    (ancho * pansize)/2.0;<BR>&gt; y = (alto-1) + (alto * pansize)/2.0;<BR>&gt; 
    } else if(direccion == 'se') {<BR>&gt; x = (ancho-1) + (ancho * 
    pansize)/2.0;<BR>&gt; y = (alto-1) + (alto * pansize)/2.0;<BR>&gt; } else 
    if(direccion == 'e') {<BR>&gt; x = (ancho-1) + (ancho * 
    pansize)/2.0;<BR>&gt; y = (alto-1)/2.0;<BR>&gt; } else if(direccion == 'w') 
    {<BR>&gt; x = 0 - (ancho * pansize)/2.0;<BR>&gt; y = (alto-1)/2.0;<BR>&gt; 
    }<BR>&gt; document.mapserv.imgxy.value = x + " " + y;<BR>&gt; 
    document.mapserv.submit();<BR>&gt; }<BR>&gt;<BR>&gt;<BR>&gt; Anyother 
    question, is there a _java script for images to zoom-in and out?<BR>&gt; you 
    can use the zoomdir and the zoom values within your template, like:<BR>&gt; 
    <INPUT type=hidden value=-2 name=zoom><BR>&gt; <INPUT type=hidden value=-1 
    name=zoomdir><BR>&gt; for a zoom out., so you can use radio buttons to 
    manage this values<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; One more question, I have 
    a refresh button and pan radio button, then we I click refresh to take a 
    layer off it moves the projective image. Why? But when I am on zoomin radio 
    button and click refresh it acts like its panning? Why?<BR>&gt;<BR>&gt; 
    Thanks,<BR>&gt;<BR>&gt; Albert<BR>&gt;<BR>&gt; 
    __________________________________________________<BR>&gt; Do You 
    Yahoo!?<BR>&gt; Tired of spam? Yahoo! Mail has the best spam protection 
    around<BR>&gt; http://mail.yahoo.com<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Hope 
    this helps.<BR>&gt;<BR>&gt; Regards,<BR>&gt; 
    Luis<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
    ---------------------------------<BR>&gt; Yahoo! Messenger with Voice. Make 
    PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or 
    less.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 
    ---------------------------------<BR>&gt; Talk is cheap. Use Yahoo! 
    Messenger to make PC-to-Phone calls. Great rates starting at 
    1¢/min.</BART_DOGGERS></LTREVINOH></BLOCKQUOTE><BR>
  <P>
  <HR SIZE=1>
  Groups are talking. We´re listening. Check out the <A 
  href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=41144/*http://groups.yahoo.com/local/newemail.html">handy 
  changes to Yahoo! Groups.</A> </BLOCKQUOTE></BODY></HTML>