[mapserver-users] Hide Layers on HTML legend where filtered r esults are null
Martin, Daniel
DMartin at erac.com
Thu Nov 14 11:37:22 PST 2002
Steve,
Without Mapscript, I suspect that's going to be hard to do. The two ways I
know of to hide a layer in the legend is:
1) Setting the status to off -> requires not using an opt_flag of 2.
2) Using the order_metadata feature, and setting the metadata value to a
negative number. In this case the status is irrelevant.
I'm don't think you can do either as the result of a filter without
Mapscript. Perhaps someone else knows a way....
-Dan
-----Original Message-----
From: Palmer, Steve [mailto:Steve_Palmer at lpsg.com]
Sent: Thursday, November 14, 2002 11:27 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] Hide Layers on HTML legend where filtered results
are null
I've waded through hundreds and hundreds of archived messages and have not
found any guidance and am hoping someone can point me in the right
direction.
I am displaying layers on an HTML legend
The content of those layers is controlled by passing a filter value as part
of my GET string (map_mylayername_filter=somevalue)
If the filter doesn't "find" any records, I would like to be able to hide
that layer on my legend
Any tips/guidance that anyone could provide would be greatly appreciated
MapServer 3.6.1, WinNT/IIS4 - Win2000/IIS5
Thanks
****************************************************************************
*********************************
Steve Palmer
GIS Developer
406-728-9323 x206
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20021114/75b560b6/attachment.htm>
More information about the MapServer-users
mailing list