Highway Shield labels?

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Sat Jun 11 20:56:56 PDT 2005


Alex Smith wrote:
> Hola everyone,
>  
> I'm having trouble getting highway shield labels to work for roads.  I'm 
> hoping to render a highway number item/field on top of my custom highway 
> shields.
>  
> Thanks!

Here is an annotation layer that I use in some of my mapfiles. I use a 
separate layer to draw the roads.

-Steve W.

   LAYER
     NAME "US_Highway_Shields_Z1"
     STATUS DEFAULT
     TYPE ANNOTATION
     TILEINDEX "majrdtile"
     CLASSITEM "CLASS"
     MAXSCALE 1000100.0
     MINSCALE 150100.0
     LABELITEM "RTE_NUM"
     CLASS
       EXPRESSION /^U/
       SYMBOL "us_highway_shield"
       COLOR 0 0 0
       LABEL
         SIZE TINY
         POSITION CC
         OFFSET 1 0
         MINDISTANCE 200
         COLOR 0 0 0
         PARTIALS FALSE
       END
     END
   END



More information about the MapServer-users mailing list