funky legend
Bob Basques
Bob.Basques at CI.STPAUL.MN.US
Fri Jan 4 13:05:45 PST 2008
All,
Note, the last Highway Shield in the Legend output is generated from a
carbon copy of the first CLASS in the listing below but at the line
drawing stage. I was trying to move the Legend generation stuff into
it's own LAYER as list below, but the Symbols don't want to cooperate
for some reason. Are there some default settings that should be used or
????
Thanks
bobb
Here is the MAPFILE fragment for the legend output:
########################
## Legend Chips - This section used exclusively for Legend Generation
## Basically these are duplicates of the Style entries
## for the separate layer
########################
LAYER
NAME 'legend_chips'
GROUP 'interstate_poly'
STATUS DEFAULT
TYPE LINE
CLASS
NAME 'US Interstate'
STYLE
SYMBOL 'interstate1_wide_back'
SIZE 22
COLOR 255 0 0
END
STYLE
SYMBOL 'interstate1_wide_front'
SIZE 22
COLOR 115 113 206
OUTLINECOLOR 254 254 254
END
LABEL
TYPE TRUETYPE
FONT bluehigh
SIZE 12
COLOR 254 254 254
MINDISTANCE 200
MINFEATURESIZE 10
OFFSET 0 0
PARTIALS FALSE
END
END
CLASS
NAME 'Access Ramp'
STYLE
SYMBOL 'circle'
SIZE 6
COLOR 175 175 175
END
STYLE
SYMBOL 'circle'
SIZE 4
COLOR 239 211 66
END
END
CLASS
NAME 'Local Roads'
STYLE
SYMBOL 'circle'
SIZE 14
COLOR 175 175 175
END
STYLE
SYMBOL 'circle'
SIZE 10
COLOR 254 254 254
END
END
CLASS
NAME 'Secondary Road'
STYLE
SYMBOL 'circle'
SIZE 14
COLOR 175 175 175
END
STYLE
SYMBOL 'circle'
SIZE 10
COLOR 255 251 115
END
END
CLASS
NAME 'MN Highway'
STYLE
SYMBOL 'circle'
SIZE 14
COLOR 175 175 175
END
STYLE
SYMBOL 'circle'
SIZE 10
COLOR 255 251 115
END
END
CLASS
NAME 'US Highway'
STYLE
SYMBOL 'circle'
SIZE 14
COLOR 175 175 175
END
STYLE
SYMBOL 'circle'
SIZE 10
COLOR 255 251 115
END
END
END
END
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080104/7062fce5/attachment.htm>
More information about the MapServer-users
mailing list