Mark,




In my case I don't do legend for the shields.  Actually I am going thru the 
road data twice.  I have a separate layer just to do the shields.

In the shields layer I start with a FILTER just to select the road classes that 
should have shields shown.  


Doing both the road symbology and shields in the same class would be too 
complex in my case.





I guess that You could create a fake class with smaller shields for the legend. 
 But I haven't tried that.




Best regards




Lars


 





-----Originalmeddelande-----
Från: "Mark Volz" <[email protected]>
Till: "Carlos Ruiz" <[email protected]>, [email protected]
Datum: 2017-02-24 18:25
Ämne: Re: [mapserver-users] Road shields on Mapserver 7


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]
https://lists.osgeo.org/mailman/listinfo/mapserver-users





-- 

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

Reply via email to