[ka-Map-users] Street names on my maps
Tim Schaub
tim.schaub at gmail.com
Wed Feb 8 11:25:12 EST 2006
Hey Clark-
>Can anyone give me a heads up on how to do street names?
You can add LABEL objects to any CLASS object within any of your layers. In
ka-Map, if you want your annotation to show up on top of all other grouped
layers, you're best off creating a layer of TYPE ANNOTATION and putting that
in a group on the bottom of your mapfile (last to draw).
I've pasted a sample annotation layer below. This is from a roads shapefile
with a "SYMBOL" field that defines classes and a "NAME" field that contains
street names. It uses the "verdana" font that is defined in my font list.
For details on the LABEL object, see
http://mapserver.gis.umn.edu/docs/reference/mapfile/label
Hope it helps,
Tim
LAYER
NAME "Roads"
TYPE ANNOTATION
STATUS ON
TEMPLATE "no template"
TOLERANCE 7
DATA "path/to/data"
LABELITEM "NAME"
CLASSITEM "SYMBOL"
CLASS
EXPRESSION "1"
NAME "US Highway"
LABEL
TYPE TRUETYPE
FONT "verdana"
ANGLE AUTO
PARTIALS FALSE
POSITION UC
SIZE 7
BUFFER 25
MINDISTANCE 250
COLOR 20 20 80
OUTLINECOLOR 200 200 180
END
END
CLASS
EXPRESSION "2"
NAME "State Route"
LABEL
TYPE TRUETYPE
FONT "verdana"
ANGLE AUTO
PARTIALS FALSE
POSITION UC
SIZE 7
BUFFER 25
MINDISTANCE 250
COLOR 20 20 80
OUTLINECOLOR 200 200 180
END
END
CLASS
EXPRESSION "3"
NAME "Major Arterial"
LABEL
TYPE TRUETYPE
FONT "verdana"
ANGLE AUTO
PARTIALS FALSE
POSITION UC
SIZE 7
BUFFER 25
MINDISTANCE 250
COLOR 20 20 80
OUTLINECOLOR 200 200 180
END
END
END
More information about the ka-Map-users
mailing list