[Mapserver-users] how to turn off central point for labels (or how not to draw them for attribute=0) ?

Moritz Lennert mlennert at club.worldonline.be
Mon Apr 26 10:53:34 EDT 2004


Charlton Purvis said:
> Moritz:
>
> What does your CLASS look like?
>
> Try doing something like:
>     CLASS
>       LABEL
>         TYPE TRUETYPE
>         ...
>       END
>       STYLE END
>     END
>
> The trick is to tell the CLASS only to render the label. It still needs
> some sort of anchor -- the STYLE, but in this case, it's empty, so it
> doesn't draw anything unless the LABEL works out.
>

My class looks like this:

    CLASS
     NAME "Symbole cercle TT"
     COLOR 255 0 0
     TEXT "N"
     LABEL
       POSITION cc
       FONT esri_1
       TYPE truetype
       FORCE true
       COLOR 255 0 0
      ANTIALIAS true
     END
    END

I'm not sure I understand your solution. I need the 'TEXT "N"' line to get
my symbol displayed, or ?

Moritz



More information about the mapserver-users mailing list