[mapserver-users] img.x versus map.x
Mike Smith
nospam at cnrit.tamu.edu
Tue Sep 24 11:16:55 PDT 2002
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 at 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!
>>
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020924/4bcbd42d/attachment.htm>
More information about the MapServer-users
mailing list