querymap for labels ?
Attila Csipa
plists at PROMETHEUS.ORG.YU
Thu Sep 2 04:52:11 PDT 2004
I'm experimenting with querymap but have bumped into a question and
wanted to check if this feature does not exist or did I just miss where
the docs describe it. I have an annotation layer, on which I perform a
query. Now I'd like all the labels that match the query to appear in a
different color but if I define querymap color and style 'hilite', I guess it
changes only the color of the feature, but not the labels, but if I define
the 'selected' style, the non-matched labels do disappear along with the
features they were attached to.
LAYER
NAME "kg1_BROJ_PARCELE_TEXT"
DATA "kg1_BROJ_PARCELE_TEXT"
STATUS ON
TYPE ANNOTATION
LABELMAXSCALE 3000
LABELMINSCALE 50
MINSCALE 50
MAXSCALE 3000
SYMBOLSCALE 3000
LABELITEM "STRING"
CLASSITEM "ANGLE"
LABELANGLEITEM "ANGLE"
CLASS
COLOR -1 -1 -1
LABEL
COLOR 100 120 130 # all the displayed labels will be of this color, regardless of querymap settings
SHADOWCOLOR -1 38 38
SHADOWSIZE 1 1
TYPE TRUETYPE
FONT verdana
ANTIALIAS TRUE
MAXSIZE 50
MINSIZE 5
POSITION CC
PARTIALS FALSE
BUFFER 2
END
END
END
QUERYMAP
STATUS ON
COLOR 200 20 10
STYLE hilite
END
More information about the MapServer-users
mailing list