[mapserver-users] RE: Hide certain symbols from legend
Bistrais, Bob
Bob.Bistrais at maine.gov
Thu Nov 17 11:59:31 PST 2011
Yes, by leaving out the Name element for each class I wanted to hide, it
works the way I wanted.
Explaining at the bottom- I created a sort of "dummy class" with
different color circles showing each category. I create this by putting
in an expression for my data, where absolutely no records will match.
So, those colored circles won't show up on the map, but will show in the
legend.
________________________________
From: Lime, Steve D (DNR) [mailto:Steve.Lime at state.mn.us]
Sent: Thursday, November 17, 2011 2:56 PM
To: Bistrais, Bob; mapserver-users at lists.osgeo.org
Subject: RE: Hide certain symbols from legend
If you don't give a class a name it won't show up in a legend. When you
say "and explain the colors at the bottom", I'm hoping you mean outside
the MapServer-generated legend.
Steve
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Bistrais,
Bob
Sent: Thursday, November 17, 2011 12:37 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Hide certain symbols from legend
Here's one that I thought I remembered seeing somewhere, but can't
figure it out. I want to be able to hide certain classes from
displaying in the legend.
I have a layer that depicts public facilities. I use different colors
to show if each facility has a certain service, or does not. This
results in a lot of redundant symbols, just of different colors. I'd
like to show the symbols just once per symbol type, and explain the
colors at the bottom. Can this be done, or am I imagining things
(again)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20111117/e5d87c6d/attachment.htm>
More information about the MapServer-users
mailing list