[mapserver-users] problem with my "label"

MeLv1n wAuRaN death_knight0911 at yahoo.com
Tue Apr 21 13:01:49 EDT 2009


Hi Steve,

i tried it but it still wouldn't display. Now that whole layer (polygon) wouldn't display anymore. any idea?

LAYER
    NAME "Tanah"
    DATA "Desa"
    STATUS ON
    TYPE POLYGON
    METADATA
      "DESCRIPTION"    "Tanah"
    END
    LABELITEM "NM_DESA"    
    CLASS
    NAME "Label"
    STYLE
        COLOR 225 200 100
        OUTLINECOLOR 0 0 0
    END
    LABEL
        FONT sans
          TYPE TRUETYPE
          SIZE 8
        POSITION AUTO
          COLOR 0 0 0
          FORCE TRUE
      END
    END
  END

Melvin

--- On Wed, 4/22/09, Steve Lime <Steve.Lime at dnr.state.mn.us> wrote:
From: Steve Lime <Steve.Lime at dnr.state.mn.us>
Subject: Re: [mapserver-users] problem with my "label"
To: mapserver-users at lists.osgeo.org, death_knight0911 at yahoo.com
Date: Wednesday, April 22, 2009, 12:30 AM

Add LABELITEM "NM_DESA" to your layer definition.

Steve

>>> On 4/21/2009 at 11:15 AM, in message
<796057.12747.qm at web54205.mail.re2.yahoo.com>, MeLv1n wAuRaN
<death_knight0911 at yahoo.com> wrote:
> Hi all,
> 
> i have a problem that needs to be solved soon. I included a label in a
layer 
> but the label does not appear in my browser. In the .dbf file, the 
> informations i want to display as the labels are in the 5th column with
the 
> name "NM_DESA"
> 
> i use openlayers 2.7 to run my mapserver mapfile. Can anyone help me? thx
> 
> here's my detail:
> 
> LAYER
>     NAME "Tanah"
>     DATA "Desa"
>     STATUS ON
>     TYPE POLYGON
>     METADATA
>       "DESCRIPTION"    "Tanah"
>     END    
>     CLASS
>       LABEL
>         FONT "sans"
>           TYPE TRUETYPE
>           SIZE 8
>           BUFFER 1
>           COLOR 0 0 0
>           FORCE TRUE
>         END
>       COLOR 225 200 100
>       OUTLINECOLOR 0 0 0
>     END
>   END
> 
> 
> Cheers,
> Melvin
> 
> 
> 
>       




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090421/5f09b39c/attachment.html


More information about the mapserver-users mailing list