Hi Philip, in my opinion the problem is related with the "mapext" parameter in your ULR. You wrote the value "shape" for "mapext" (mapext=shape). You should set this parameter-value to the mapextent you used before sending your query (selection). Try this: name="mapext" value="[mapext]" I think this should solve the problem.
Good luck and please let me know about the result. regards Daniel -------- Original-Nachricht -------- Datum: Thu, 13 Jul 2006 11:48:10 +0200 Von: Spot <[EMAIL PROTECTED]> An: [email protected] Betreff: [UMN_MAPSERVER-USERS] Query and zoom mode > 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 -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer -- Echte DSL-Flatrate dauerhaft für 0,- Euro*! "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
