Labels not displaying
Camden Daily
cdaily at GMAIL.COM
Thu Apr 14 08:47:33 PDT 2005
from a quick glance, you're pointing the two layers at two different
data files, "airports" and "uk_airports". are they really two
seperate files?
-camden
On 4/14/05, sc <sc at bytron.com> wrote:
> Hi
>
> I have managed to get several layers switched on and off via mapscript/php
> but I am unable to see any labels whose text comes from my shapefile.
>
> I can annotate the map directly with TEXT (), but cannot get labelitem to
> work within
> my "Codes" Layer.
>
> here is my mapfile:
>
> thanks
> Simon
>
> MAP
> NAME UK
> STATUS ON
> SIZE 1000 1000
> IMAGETYPE PNG
> IMAGECOLOR 240 240 240
> SHAPEPATH "/usr/local/apache/htdocs/map/data/conic"
> EXTENT -994934.821920 5173124.716504 322333.423383 6431993.097353
>
> SYMBOL
> NAME 'circle'
> TYPE ELLIPSE
> POINTS 1 1 END
> FILLED TRUE
> END
>
> WEB
> IMAGEPATH "/usr/local/apache/htdocs/tmp/"
> IMAGEURL "/tmp/"
> END
>
> LAYER
> NAME "Airports"
> GROUP airfields
> TYPE POINT
> STATUS DEFAULT
> DATA "airports"
> CLASSITEM "ICAODesign"
> CLASS
> NAME "UKAIRPORTS"
> STYLE
> OUTLINECOLOR 60 60 60
> COLOR 255 0 0
> SYMBOL 'circle'
> SIZE 4
> END
> END
> END
>
> LAYER
> NAME "Codes"
> TYPE ANNOTATION
> DATA "uk_airports"
> STATUS DEFAULT
> LABELITEM "ICAODesign"
> CLASS
> LABEL
> FORCE TRUE
> SIZE MEDIUM
> POSITION CC
> PARTIALS TRUE
> COLOR 0 0 0
> END
> END
> END
>
> LAYER
> NAME "credits"
> STATUS DEFAULT
> TRANSFORM FALSE
> TYPE ANNOTATION
> FEATURE
> POINTS
> 10 480
> END
> TEXT 'Map of the United Kingdom and Ireland'
> END
> FEATURE
> POINTS
> 10 500
> END
> TEXT 'By SC'
> END
> CLASS
> LABEL
> TYPE BITMAP
> POSITION CR
> COLOR 0 0 0
> END
> END
> END
>
> END
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.9.9 - Release Date: 13/04/2005
>
More information about the MapServer-users
mailing list