[mapserver-users] Layer (line) with LABELITEM...
Steve Lime
Steve.Lime at dnr.state.mn.us
Mon Oct 20 13:40:45 PDT 2008
Hi Paul: For now you must have 2 layers. There's no way to make one
style apply
to the line work and the another to a label marker. That may change in
5.4 but for
now you're stuck with 2.
Steve
>>> "Paul james" <pauljame at gmail.com> 10/17/08 12:44 PM >>>
Hello guys...
I have 2 layers, LINE and ANNOTATION...
Like that :
LAYER
NAME TestLINE
TYPE LINE
...
CLASS
STYLE
SYMBOL 'circle'
SIZE 16
COLOR 175 175 175
END ## BG
STYLE
SYMBOL 'circle'
SIZE 12
COLOR 247 190 33
END
MAXSCALE 40000
END
CLASS
MINSCALE 40001
#NAME 'US Interstate' ## Using Interstate Shield Symbol
Instead
STYLE
SYMBOL 'circle'
SIZE 14
COLOR 175 175 175
END ## BG
STYLE
SYMBOL 'circle'
SIZE 10
COLOR 247 190 33
END
MAXSCALE 45000
END
END
And I have a ANNOTATION to label the TestLINE layer:
LAYER
NAME 'road_sym'
TYPE ANNOTATION
LABELITEM 'roadnumber'
CLASS
STYLE
SYMBOL 'road'
SIZE 28
COLOR 255 0 0
END
STYLE
SYMBOL 'road'
SIZE 28
COLOR 115 113 206
OUTLINECOLOR 254 254 254
END
LABEL
TYPE TRUETYPE
FONT Arial
SIZE 8
COLOR 254 254 254
MINDISTANCE 100
MINFEATURESIZE 10
OFFSET 0 0
PARTIALS FALSE
END
MAXSCALE 20000000
END
END
That works great...
But, Is that possible to make just one layer with lines and annotation..
I
tried using LABELITEM and LABEL on LINE layer... But where Am I supposed
to
write the label Style ?
[]́s
More information about the MapServer-users
mailing list