<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
In this case, I'm trying to show one legend item for all three classes,
so I commented out two of them. After digging around all of my
different mapfiles more, it looks like there is a problem with the
legend for any class in my mapfiles where there is a CLASSITEM and
EXPRESSION. This seems to be why layers with no CLASSITEM and
EXPRESSION (such as the "Post Offices" layer) show a legend and why the
"Political Boundaries" layer only shows one legend item and then quits
when EXPRESSION is used.<br>
<br>
Any ideas why this is a problem?<br>
<br>
<div class="moz-signature">
<meta http-equiv="Content-Type" content="text/html; ">
<title>Untitled Document</title>
<style type="text/css">
<!--
.name_title {
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #009;
}
.org {
        font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #060;
}
.links {
        font-size: 12px;
}
-->
</style>
<p><span class="name_title">Devon Piernot<br>
</span>
<span class="org">GIS / Web Developer<br>
Southwestern Wisconsin Regional Planning Commission<br>
</span><span class="links">(608) 342-6065</span><br>
<span class="links"><a class="moz-txt-link-abbreviated" href="mailto:piernotd@uwplatt.edu">piernotd@uwplatt.edu</a><br>
<a class="moz-txt-link-abbreviated" href="http://www.swwrpc.org">www.swwrpc.org</a></span></p>
</div>
<br>
<br>
Len Kne wrote:
<blockquote
cite="mid:F95D6EE79147A245A34347A8577243DE60BCFC17E9@hexch64.houstonengineeringinc.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<title>Untitled Document </title>
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
p.nametitle, li.nametitle, div.nametitle
        {mso-style-name:name_title;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:"Trebuchet MS","sans-serif";
        color:#000099;}
p.org, li.org, div.org
        {mso-style-name:org;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:"Trebuchet MS","sans-serif";
        color:#006600;}
p.links, li.links, div.links
        {mso-style-name:links;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:9.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
span.nametitle1
        {mso-style-name:name_title1;
        font-family:"Trebuchet MS","sans-serif";
        color:#000099;}
span.org1
        {mso-style-name:org1;
        font-family:"Trebuchet MS","sans-serif";
        color:#006600;}
span.links1
        {mso-style-name:links1;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">I
think I mistakenly said the legend is coming from the LAYER
NAME, I should have said it comes from the CLASS NAME. In your
mapfile,
the NAME tag is commented out for the classes under the Municipal
boundary
layer. Does un-commenting them make a difference?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Len<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div>
<div
style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">From:</span></b><span
style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
Devon Piernot
[<a class="moz-txt-link-freetext" href="mailto:piernotd@uwplatt.edu">mailto:piernotd@uwplatt.edu</a>] <br>
<b>Sent:</b> Wednesday, February 17, 2010 1:32 PM<br>
<b>To:</b> Bob Basques<br>
<b>Cc:</b> geomoose-users<br>
<b>Subject:</b> Re: [Geomoose-users] can't show legends<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;">The strange thing
is that the
legends are displaying perfectly on my localhost but not when I upload
them
live to the web server. The "Political Boundaries" layer should
have two legend categories-- Counties & Municipalities-- but it
only shows
counties. I've attached the mapfile which is used both locally and on
the
live site.<o:p></o:p></p>
<div>
<p><span class="nametitle1"><span style="font-size: 10.5pt;">Devon
Piernot</span></span><span
style="font-size: 10.5pt; font-family: "Trebuchet MS","sans-serif"; color: rgb(0, 0, 153);"><br>
</span><span class="org1"><span style="font-size: 9pt;">GIS / Web
Developer</span></span><span
style="font-size: 9pt; font-family: "Trebuchet MS","sans-serif"; color: rgb(0, 102, 0);"><br>
<span class="org1">Southwestern Wisconsin Regional Planning Commission</span><br>
</span><span class="links1"><span style="font-size: 9pt;">(608)
342-6065</span></span><br>
<span class="links1"><span style="font-size: 9pt;"><a
moz-do-not-send="true" href="mailto:piernotd@uwplatt.edu">piernotd@uwplatt.edu</a></span></span><span
style="font-size: 9pt;"><br>
<span class="links1"><a moz-do-not-send="true"
href="http://www.swwrpc.org">www.swwrpc.org</a></span></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
Bob Basques wrote: <o:p></o:p></p>
<p><br>
<span style="font-family: "Comic Sans MS";">Devon, </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-family: "Comic Sans MS";">Of the two layers that
were on by
default, one was working and generating a Legend. The Roads legend
didn't
generate anything for me, but the Counties on did.</span> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-family: "Comic Sans MS";">This link from your
site for the
Roads legend Icon seems to be working:</span> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><i><u><a moz-do-not-send="true"
href="http://gis.swwrpc.org/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2F%2Fswwrpc%2Fbasemap%2Froads.map&layers=all&mode=legend&mapext=485802.2046+259570.16225+529258.2046+289938.16225&imgext=485802.2046+259570.16225+529258.2046+289938.16225&map_size=2037+1423&imgx=1018.5&imgy=711.5&imgxy=2037+1423"><span
style="font-family: "Comic Sans MS";">http://gis.swwrpc.org/cgi-bin/mapserv?map=%2Fopt%2Fmaps%2F%2Fswwrpc%2Fbasemap%2Froads.map&layers=all&mode=legend&mapext=485802.2046+259570.16225+529258.2046+289938.16225&imgext=485802.2046+259570.16225+529258.2046+289938.16225&map_size=2037+1423&imgx=1018.5&imgy=711.5&imgxy=2037+1423</span></a></u></i>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-family: "Comic Sans MS";">But it's just creating
a blank
image. Do you have a NAME parameter inside of the LAYER tag set inside
of
the mapfiles for those layers you want to see a legend for?</span> <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
<br>
<o:p></o:p></p>
<p><span style="font-family: "Comic Sans MS";">bobb</span> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p><br>
>>> Devon Piernot <a moz-do-not-send="true"
href="mailto:piernotd@uwplatt.edu"><piernotd@uwplatt.edu></a>
wrote:<o:p></o:p></p>
<div
style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(5, 5, 5); border-width: medium medium medium 1pt; padding: 0in 0in 0in 5pt; margin-left: 11.25pt;">
<p
style="background: rgb(243, 243, 243) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Hey
all,<br>
<br>
I just realized that the layer legends on my map are not displaying
properly. Any idea if the problem is with my mapfiles or the
mapbook?<br>
<br>
<a moz-do-not-send="true"
href="http://gis.swwrpc.org/geomoose/demo.html">http://gis.swwrpc.org/geomoose/demo.html</a><o:p></o:p></p>
<div>
<p
style="background: rgb(243, 243, 243) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">--<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p><span
style="font-size: 10.5pt; font-family: "Trebuchet MS","sans-serif"; color: rgb(0, 0, 153);">Devon
Piernot<o:p></o:p></span></p>
</div>
<div>
<p><span
style="font-size: 9pt; font-family: "Trebuchet MS","sans-serif"; color: rgb(0, 102, 0);">GIS
/ Web Developer<br>
Southwestern Wisconsin Regional Planning Commission<o:p></o:p></span></p>
</div>
<div>
<p><span style="font-size: 9pt;">(608) 342-6065 <o:p></o:p></span></p>
</div>
<p><o:p> </o:p></p>
<div>
<p><span style="font-size: 9pt;"><a moz-do-not-send="true"
href="mailto:piernotd@uwplatt.edu">piernotd@uwplatt.edu</a><br>
<a moz-do-not-send="true" href="http://www.swwrpc.org">www.swwrpc.org</a>
<o:p></o:p></span></p>
</div>
</div>
</blockquote>
</body>
</html>