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:[email protected]] Sent: Thursday, November 17, 2011 2:56 PM To: Bistrais, Bob; [email protected] 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: [email protected] [mailto:[email protected]] On Behalf Of Bistrais, Bob Sent: Thursday, November 17, 2011 12:37 PM To: [email protected] 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)?
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
