Query Highlight Map

Ken Lord kenlord at GMAIL.COM
Fri Dec 10 20:22:33 EST 2004


Hi Micheal,

I dont use Jbox, but I hope my suggestion points you in the right direction.

I have made similar highlight maps in my query results using html with
<IMG src=...> tags where the src ponts to mapserver with all the
parameters in the URL.

In my case to loose the legend, the 'src=' url would include a
parameter such as:
&map_legend_status=OFF

You can modify any part of the mapfile in this way which is great if
you dont want to make duplicate map files modified just for your query
snapshots.

There is a paragraph or three of documentation on this here:

http://mapserver.gis.umn.edu/doc44/cgi-reference.html

scroll down to 'Changing map file parameters via a form or a URL'

But note that I have had problems making such an image work with
mapserver 4.2. ... works great with 3.6, but is very sporadic with
4.2.

I've posted on this with no replies, and in our application I've had
to keep mapserver 3.6 around with map files to keep the snapshots
working correctly. Haven't tried with 4.4 yet.

Perhaps in your case a second map file, edited for your query maps
would be easier ... but not having used jbox, I may be out to lunch.

Cheers,
Ken Lord
Vancouver BC

On Fri, 10 Dec 2004 15:07:16 -0600, Michael Smith
<msmith at sanangelompo.org> wrote:
>
>
> Hi,
>
> I have my legend and scale embedded in my map image and am using jbox for
> may application.  When I am in query mode and select a feature it displays
> the selected feature's data just like the demo does it.  The 200X200 pixel
> query image on the query page fills up with my legend and you can't see the
> query map to tell where the feature you have selected is.  How can I get the
> legend not to appear in my query map image or will I have to not embed the
> legend in my map window?  Can anyone help?  Thanks.
>



More information about the mapserver-users mailing list