[mapserver-users] Hide Layers on HTML legend where filtered r
esults are null
Martin, Daniel
DMartin@erac.com
Thu, 14 Nov 2002 13:37:22 -0600
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------=_NextPartTM-000-58d8a7c6-f800-11d6-bb0b-00508bcfdcc7
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C28C15.40880A4A"
------_=_NextPart_001_01C28C15.40880A4A
Content-Type: text/plain;
charset="iso-8859-1"
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@lpsg.com]
Sent: Thursday, November 14, 2002 11:27 AM
To: mapserver-users@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
------_=_NextPart_001_01C28C15.40880A4A
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Hide Layers on HTML legend where filtered results are null</TITLE>
<META content="MSHTML 5.50.4613.1700" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff
size=2>Steve,</FONT></SPAN></DIV>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff
size=2>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:</FONT></SPAN></DIV>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff size=2>1)
Setting the status to off -> requires not using an opt_flag of
2.</FONT></SPAN></DIV>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff size=2>2)
Using the order_metadata feature, and setting the metadata value to a negative
number. In this case the status is irrelevant.</FONT></SPAN></DIV>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff
size=2>I'm don't think you can do either as the result of a filter
without Mapscript. Perhaps someone else knows a
way....</FONT></SPAN></DIV>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff
size=2>-Dan</FONT></SPAN></DIV>
<DIV><SPAN class=924492619-14112002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Palmer, Steve
[mailto:Steve_Palmer@lpsg.com]<BR><B>Sent:</B> Thursday, November 14, 2002
11:27 AM<BR><B>To:</B> mapserver-users@lists.gis.umn.edu<BR><B>Subject:</B>
[mapserver-users] Hide Layers on HTML legend where filtered results are
null<BR><BR></FONT></DIV>
<P><FONT face=Arial size=2>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.</FONT></P>
<P><FONT face=Arial size=2>I am displaying layers on an HTML legend</FONT>
</P>
<P><FONT face=Arial size=2>The content of those layers is controlled by
passing a filter value as part of my GET string
(map_mylayername_filter=somevalue)</FONT></P>
<P><FONT face=Arial size=2>If the filter doesn't "find" any records, I would
like to be able to hide that layer on my legend</FONT> </P>
<P><FONT face=Arial size=2>Any tips/guidance that anyone could provide would
be greatly appreciated</FONT> </P>
<P><FONT face=Arial size=2>MapServer 3.6.1, WinNT/IIS4 - Win2000/IIS5</FONT>
</P>
<P><FONT face=Arial size=2>Thanks</FONT> </P>
<P><FONT face=Arial
size=2>*************************************************************************************************************</FONT>
<BR><FONT face=Arial size=2>Steve Palmer</FONT> <BR><FONT face=Arial
size=2>GIS Developer</FONT> <BR><FONT face=Arial size=2>406-728-9323
x206<B></B></FONT> </P></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C28C15.40880A4A--
------=_NextPartTM-000-58d8a7c6-f800-11d6-bb0b-00508bcfdcc7--