[mapserver-users] Adding symbols on top of polyline elements

thomas bonfort thomas.bonfort at gmail.com
Wed Nov 12 10:46:15 EST 2008


Hi,

> Case 3: displaying both arrows on the same element:
>   CLASS
>     NAME "Right"
>     EXPRESSION /^FO040314$/
>     STYLE
>         SYMBOL right
>         SIZE 24
>         COLOR 51 102 0
>     END
>    END
>    CLASS
>     NAME "Left"
>     EXPRESSION /^FO040314$/
>     STYLE
>         SYMBOL left
>         SIZE 24
>         COLOR 102 51 0
>     END
>    END
>
> How can I display both arrows on the same object (or do they display, but
> they overlap completely?)

only ONE class is drawn for each feature, the first one in the rder of
the mapfile to meet the expression and scale tests. so your second
class is never rendered in this case.

CLASS
     NAME "Rightand left"
     EXPRESSION /^FO040314$/
     STYLE
         SYMBOL right
         SIZE 24
         COLOR 51 102 0
     END
     STYLE
         SYMBOL left
         SIZE 24
         COLOR 102 51 0
     END
END


cheers,
thomas


More information about the mapserver-users mailing list