Query and zoom mode

Spot spot.news at GMX.NET
Thu Jul 13 05:48:10 EDT 2006


Hi!

I am experimenting with Mapserver for about 2 months now but still
considering myself as relatively new and unexperienced.
I use the Windows CGI together with jBox and static map sourcefiles.
At the moment I have got a problem with the nquery-mode. The query is
executed correctly and a query map image with highlighted features based
on the user selection is created. When I submit the form with the query,
everything goes fine. The query result is shown and the map is created,
but the resulting map png is zoomed.
The URL looks like this:

http://localhost/path_to/mapserv.exe?imgbox=304+324+334+356&layer=layer1&layer=layer2&layer=layer3&qlayer=layer3&zoomdir=0&zoomsize=1&mode=nquery&dummyname=dummyvalue&buttonActive=button4&mapsize=500+500&querymode=&imgxy=304+324&imgext=396997.000000+4480748.500000+409180.000000+4492931.500000&mapxy=&scale=&map=path_to/mapfile.map&mapext=shapes&savequery=true


When I remove the "zoomsize" or the "zoomdir" attribute the CGI doesn't
create a results page for the query, but instead shows the normal map
template with a zoomed map.
If I set the "zoomsize" to 0, I get an error from the CGI.

How can I solve this?

Thanks,
Philip



More information about the mapserver-users mailing list