querymap for labels ?

Richard Greenwood richard.greenwood at GMAIL.COM
Thu Sep 2 09:42:16 EDT 2004


A work around that I have used - have a second definition of the layer
with the labels defined in the highlite color & style, set status
default, and use filter and filteritem to control display.  If there
are no query parameters, nothing will be drawn for that layer.


HTH
Rich

--
Richard Greenwood
richard.greenwood at gmail.com
www.greenwoodmap.com


On Thu, 2 Sep 2004 13:52:11 +0200, Attila Csipa
<plists at prometheus.org.yu> wrote:
> 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