[mapserver-users] Apply a single label to all the classes in a layer
Jeff McKenna
jmckenna at gatewaygeomatics.com
Thu Jun 10 07:47:53 PDT 2010
Hello Mark,
Unfortunately no. You'll be doing a lot of copying and pasting.
Alternatively you could just use an include file for each re-used LABEL
object (http://www.mapserver.org/mapfile/Include.html), which would
shorted your mapfie.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
Mark Volz wrote:
> Hello,
>
> I have a layer that contains many different classes. Can we apply a
> single label to all the classes in a layer?
>
> For Example can we make a map file like this:
>
> LAYER
>
> CLASS
>
> EXPRESSION
>
> STYLE
>
> CLASS
>
> EXPRESSION
>
> STYLE
>
> ….
>
> LABEL #for all classes
>
> COLOR
>
> …
>
> END #Layer
>
> As opposed to making a layer file like this:
>
> LAYER
>
> CLASS
>
> EXPRESSION
>
> STYLE
>
> LABEL
>
> CLASS
>
> EXPRESSION
>
> STYLE
>
> LABEL
>
> ...
>
> END #Layer
>
More information about the MapServer-users
mailing list