: Re: Zooom/Pan interface using gif images rather than radio buttons
Jonathan Candy
jonathancandy at hotmail.com
Fri Mar 23 16:03:42 PST 2001
So you do not want to use Javascript or Java, but want to avoid checkboxes
or radio buttons ?
If you are a Windows user with IIS, you can use ASP VBScript to determine
which GIF was clicked and then execute a mapserv command.
For example, if your HTML form has 2 gifs named zoomin and zoomout, your asp
code has:
zoominpick = Request("zoomin.x") 'zoom in
zoomoutpick = Request("zoomout.x") ' zoom out
if (zoominpick > 0 ) then
draw = "ZOOM_IN"
end if
if (zoomoutpick > 0 ) then
draw = "ZOOM_OUT"
end if
You cannot create a zoom box, but your program can handle pans, zooms, and
any other requests.
You can do a 'mini-mapscript' type of program with VBScript and all the
mapserv cgi variables + your own set of hidden variables. You will calculate
a new map extent and other values before executing a mapserver URL.
http://www.georanger.com
is an example where I wanted to use mapserver with PDAs web browsers that
have no java or javascript support.
regards,
Jonathan Candy
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
More information about the MapServer-users
mailing list