Question relating to queries

Stephen Lime steve.lime at dnr.state.mn.us
Tue Nov 2 10:46:55 PST 1999


You can do it a couple of ways. One is to use frames. The other is to
embed a normal mapserver form in a query template. The image in that
form has to be created with another call to the mapserver (i.e. <img src="/cgi-bin"...>
or <input type="image" src="/cgi-bin"...>. With 3.2 there is no way to isolate
the returned shapes (eg. hilite) but you can create a map of the queried area.
You could even save a reference to the last image using hidden variables
and passing the image url through to the query page. I have several apps
that embed maps on the query results. Here's an example:

The Recreation Compass at the DNR, zoom into the SE portion of the
state and click on any of the yellow-orange polygons. I use the extent of
the shape to build a map with different data than is on the compass. I even
go so far as to compute scales for the map to be created and if the area
is too small I recompute with some minimum scale an recompute. Use MSIE
to actually view the code. http://www.dnr.state.mn.us/compass 

Here's an example with frames: http://www.dnr.state.mn.us/minerals/testing/

Map activies happen in one frame, mapserver query results are in another and
hits on msql in yet another. Works pretty nice.

Hope this helps.

Steve

>>> "Brent Fraser" <bfraser at geoanalytic.com> 11/02/99 10:15AM >>>
Paul,

   I've been thinking of doing this too.    I'm going to try frames
instead of a table to create several "panes" on the web page,
one of which will be for query results.

Brent

----- Original Message -----
From: Paul G. Allen <pgallen at randomlogic.com>
To: MapServer Users List <mapserver-users at lists.gis.umn.edu>
Sent: Tuesday, November 02, 1999 1:04 AM
Subject: Question relating to queries


> I would like to be able to display a map as well as query data on the same
web
> page. Is this possible? If so, how could I do this?
>
> PGA
>





More information about the MapServer-users mailing list