[mapserver-users] img.x versus map.x

Mike Smith nospam@cnrit.tamu.edu
Tue, 24 Sep 2002 13:16:55 -0500


--------------070206020101080606050207
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

THANK YOU, THANK YOU, THANK YOU!!!!

This fixed it!  I knew it was something simple, but I had no idea that 
the name of my image was important!  I guess I'm just a little lacking 
on understanding the depths of how HTML forms work.

Thanks a ton!  What a great development community Mapserver has!



TCHaddad wrote:

>The URL is being formed by your browser, not Mapserver. So the problem is in the page that you have you form in.
>
>did you give your form <input type="image" name="map"> ?
>
>if so then change to name="img" and the URL should get formed correctly, and mapserver will get the values it needs from the correctly named element.
>
>hope this helps,
>
>TH
>
>
>
>---------- Original Message ----------------------------------
>From: Mike Smith <nospam@cnrit.tamu.edu>
>Date: Tue, 24 Sep 2002 12:08:28 -0500
>
>>Hello listers,
>>
>>   Sorry to sound like a broken record, but I can't seem to get past 
>>this seemingly elementary problem!  I still can't get my image to zoom 
>>or pan to the point of my mouse click...it only zooms in to the center 
>>of the image and panning is totally disabled.  Thanks to several of you 
>>for offering suggestions, but nothing has worked so far.  I'm right on 
>>the edge of uncovering the problem, but can't seem to figure out where a 
>>certain mapserver CGI variable is coming from...here's what I've got:
>>
>>when I click on my main image, my page reloads and zoomin occurs, but 
>>only to the center of my image, not to the point that I clicked on.  I 
>>see in the URL of my browser that the actual coordinates of my mouse 
>>clicks are showing up, however, unlike the Itasca demo and other working 
>>Mapserver pages I've seen, my mouse click coordinates are showing up in 
>>the following format:
>>
>>..../cgi-bin/mapserv?map.x=214&map.y=43.....
>>
>>now if I go into the URL field and change the above "map.x" and "map.y" 
>>to "img.x" and "img.y" respectively, then reload the URL...BOOM!  My 
>>image shows up zoomed to the right factor and centered on the point I 
>>had clicked on.
>>
>>Here's my question:  How come I get "map.x" and "map.y" when I click my 
>>image?  If these were "img.x" and "img.y" then everything would be 
>>working...why is my mapserv CGI program inserting the wrong CGI variable 
>>names?  If I can only get it to insert the mouse coordinates as "img.x" 
>>and "img.y" values, I'll be working just fine!
>>
>>Thanks in advance for your help!
>>
>>
>>
>>
>
>


--------------070206020101080606050207
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
THANK YOU, THANK YOU, THANK YOU!!!!<br>
<br>
This fixed it! &nbsp;I knew it was something simple, but I had no idea that the
name of my image was important! &nbsp;I guess I'm just a little lacking on understanding
the depths of how HTML forms work.<br>
<br>
Thanks a ton! &nbsp;What a great development community Mapserver has!<br>
<br>
<br>
<br>
TCHaddad wrote:<br>
<blockquote type="cite" cite="mid:200209241353.AA1880031494@cshore.com">
  <pre wrap="">The URL is being formed by your browser, not Mapserver. So the problem is in the page that you have you form in.<br><br>did you give your form &lt;input type="image" name="map"&gt; ?<br><br>if so then change to name="img" and the URL should get formed correctly, and mapserver will get the values it needs from the correctly named element.<br><br>hope this helps,<br><br>TH<br><br><br><br>---------- Original Message ----------------------------------<br>From: Mike Smith <a class="moz-txt-link-rfc2396E" href="mailto:nospam@cnrit.tamu.edu">&lt;nospam@cnrit.tamu.edu&gt;</a><br>Date: Tue, 24 Sep 2002 12:08:28 -0500<br><br></pre>
  <blockquote type="cite">
    <pre wrap="">Hello listers,<br><br>   Sorry to sound like a broken record, but I can't seem to get past <br>this seemingly elementary problem!  I still can't get my image to zoom <br>or pan to the point of my mouse click...it only zooms in to the center <br>of the image and panning is totally disabled.  Thanks to several of you <br>for offering suggestions, but nothing has worked so far.  I'm right on <br>the edge of uncovering the problem, but can't seem to figure out where a <br>certain mapserver CGI variable is coming from...here's what I've got:<br><br>when I click on my main image, my page reloads and zoomin occurs, but <br>only to the center of my image, not to the point that I clicked on.  I <br>see in the URL of my browser that the actual coordinates of my mouse <br>clicks are showing up, however, unlike the Itasca demo and other working <br>Mapserver pages I've seen, my mouse click coordinates are showing up in <br>the following format:<br><br>..../cgi-bin/mapser
v?map.x=214&amp;map.y=43.....<br><br>now if I go into the URL field and change the above "map.x" and "map.y" <br>to "img.x" and "img.y" respectively, then reload the URL...BOOM!  My <br>image shows up zoomed to the right factor and centered on the point I <br>had clicked on.<br><br>Here's my question:  How come I get "map.x" and "map.y" when I click my <br>image?  If these were "img.x" and "img.y" then everything would be <br>working...why is my mapserv CGI program inserting the wrong CGI variable <br>names?  If I can only get it to insert the mouse coordinates as "img.x" <br>and "img.y" values, I'll be working just fine!<br><br>Thanks in advance for your help!<br><br><br><br><br></pre>
    </blockquote>
    <pre wrap=""><!----><br><br></pre>
    </blockquote>
    <br>
    </body>
    </html>

--------------070206020101080606050207--