<br><br>
<div><span class="gmail_quote">2006/7/21, Albert Anderson &lt;<a href="mailto:bart_doggers@yahoo.com">bart_doggers@yahoo.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hi,<br><br>&nbsp;I figure out my images.&nbsp; Does anyone have a _java script for using a image for panning.&nbsp; I have images set for the corners of my map. I want to use them to pan.</div></blockquote>
<div>&nbsp;</div>
<div>You can use something like this, you have to handle your width and height of your image:</div>
<div>alto = height, ancho = width.</div>
<div>function paneo(direccion,alto,ancho) {<br>&nbsp; var x,y;<br>&nbsp; var pansize = 0.75;<br>&nbsp;if(direccion == 'n') {<br>&nbsp;&nbsp; x = (ancho-1)/2.0;<br>&nbsp;&nbsp; y = 0 - (alto * pansize)/2.0;<br>&nbsp;} else if(direccion == 'nw') {<br>&nbsp;&nbsp; x = 0 - (ancho * pansize)/2.0;
<br>&nbsp;&nbsp; y = 0 - (ancho * pansize)/2.0;<br>&nbsp;} else if(direccion == 'ne') {<br>&nbsp;&nbsp; x = (ancho-1) + (ancho * pansize)/2.0;<br>&nbsp;&nbsp; y = 0 - (alto * pansize)/2.0;<br>&nbsp;} else if(direccion == 's') {<br>&nbsp;&nbsp; x = (ancho-1)/2.0;<br>&nbsp;&nbsp; y = (alto-1) + (alto * pansize)/2.0;
<br>&nbsp;} else if(direccion == 'sw') {<br>&nbsp;&nbsp; x = 0 - (ancho * pansize)/2.0;<br>&nbsp;&nbsp; y = (alto-1) + (alto * pansize)/2.0;<br>&nbsp;} else if(direccion == 'se') {<br>&nbsp;&nbsp; x = (ancho-1) + (ancho * pansize)/2.0;<br>&nbsp;&nbsp; y = (alto-1) + (alto * pansize)/2.0;
<br>&nbsp;} else if(direccion == 'e') {<br>&nbsp;&nbsp; x = (ancho-1) + (ancho * pansize)/2.0;<br>&nbsp;&nbsp; y = (alto-1)/2.0;<br>&nbsp;} else if(direccion == 'w') {<br>&nbsp;&nbsp; x = 0 - (ancho * pansize)/2.0;<br>&nbsp;&nbsp; y = (alto-1)/2.0;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;document.mapserv.imgxy.value
 = x + &quot; &quot; + y;<br>&nbsp;document.mapserv.submit();&nbsp;&nbsp; <br>}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Anyother question, is there a _java script for images to&nbsp; zoom-in and out?</div></blockquote>
<div>you can use the zoomdir and the zoom values within your template, like:</div>
<div>&lt;input type=&quot;hidden&quot; name=&quot;zoom&quot; value=&quot;-2&quot;&gt;</div>
<div>
<div>&lt;input type=&quot;hidden&quot; name=&quot;zoomdir&quot; value=&quot;-1&quot;&gt;</div>
<div>for a zoom out., so you can use radio buttons to manage this values</div>
<div>&nbsp;</div>
<div>&nbsp;</div></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>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><br>Thanks,<br>&nbsp;</div>
<div><span class="sg">Albert <br></span></div>
<div><span class="ad">
<p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.yahoo.com/" target="_blank">
http://mail.yahoo.com</a> </p></span></div></blockquote></div><br>
<div>Hope this helps.</div>
<div><br>Regards,</div>
<div>Luis</div>