All,

You can do the Legend the way you want by just setting up a dummy layer 
specifically for scaling and styling the Legends.

Turn off the NAME value in the “draw” (real) layer, and turn it on in the dummy 
layer just for displaying the Legend.  You can then scale the Sheilds in the 
Legends separately from the Linework in the map output.

There’s probably some negligible overhead to this route of course, you should 
do some speed testing for large images in particular.

bobb


On Feb 24, 2017, at 11:25 AM, Mark Volz 
<[email protected]<mailto:[email protected]>> wrote:

Carlos and others,

I still would like to display the line for the highway class in my legend.  
It’s just the shield is too large for the legend so it either needs to be 
shrank or removed.  I suppose I could cheat by adding two classes for each of 
my road types, but I don’t know if this is the cleanest solution.  Please let 
me know if you have a better idea.

Thank You

CLASS # an unnamed class for the map
                NAME NOTHING #This class should not be displayed in the legend
                EXPRESSION ‘A10’
STYLE
                                …
                END STYLE
                LABEL
                                ROAD SHEILD FOR THE MAP
                END LABEL
END CLASS
CLASS  # A fake class for the legend
                NAME ‘US HIGHWAYS’
                EXPRESSION ‘999999’  #This will never show up on the map as 
there are no segments with a value of 999999, but it should still show up on 
the legend.
STYLE
                                …
                END STYLE
                LABEL
                                POSSIBLE TINY ROAD SHEILD FOR THE LEGEND
                END LABEL
END CLASS


Sincerely,
Mark Volz
_______________________________________________
mapserver-users mailing list
[email protected]<mailto:[email protected]>
https://lists.osgeo.org/mailman/listinfo/mapserver-users



"Fill what's empty, empty what's full, and scratch where it itches."
- the Duchess of Windsor, when asked what is the secret of a long and happy life



_______________________________________________
mapserver-users mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to