[mapserver-users] Zoom & imgxy
Vu Pham
vu at sivell.com
Thu Mar 21 16:35:14 PST 2002
-----Original Message-----
From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com]
Sent: Thursday, March 21, 2002 5:57 PM
To: Vu Pham
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [mapserver-users] Zoom & imgxy
>Vu,
>It is to fact the mapserver into thinking you get a click on the map
when in fact you clicked the submit button. >Those constant coords are
the center of a 600x600 image so the map zooms in about the center. If
you click it >will zoom in about the point where you clicked.
>
>-Steve W.
Thanks , Steve. Applying the center of my map to imgxy, it works well.
So am I correct to say, to the mapserv, the parms img.x and img.y have
higher priority than imgxy ?
Vu
Vu Pham wrote:
>
> Hi all,
>
> I am confused at zoom and imgxy.
>
> In my app if I set zoom mode and click on the map, then zoom works
> well. But if I click on button Submit ( with Zoom mode is still on )
> then the map is not zoomed.
>
> I look into demo.html of the mapdemo, it has the following line:
>
> <input type="hidden" name="imgxy" value="299.5 299.5">
>
> If I delete this line, then setting Zoom in and clicking Refresh does
> not zoom the map. But if I click on the map itself, then the zoom
> function works.
>
> This makes me thing that the value imgxy must play some important role
> in this case. But why the demo always set it to a constant ?
>
> Thanks in advance,
>
> Vu
More information about the MapServer-users
mailing list