[mapserver-users] how to map_layer_class_name in 6.4.0?

zach cruise zachc1980 at gmail.com
Wed Jan 29 16:32:26 PST 2014


i tried like you said:

..&map.layer[layer1].class[class1]=NAME+new_name&..

but i got the following error (DEBUG 5):

loadClass(): Unknown identifier. Parsing error near (NAME):(line 1)

where the map file is:

VALIDATION
 "class1" ".*"
END
CLASS
 NAME "class1"

http://mapserver.org/cgi/controls.html
http://mapserver.org/cgi/runsub.html
http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT
http://osgeo-org.1560.x6.nabble.com/CLASS-NAME-Runtime-substitution-Variable-td4976741.html


On Tue, Jan 28, 2014 at 11:40 PM, Lime, Steve D (MNIT)
<Steve.Lime at state.mn.us> wrote:
> I believe the syntax is ...&map.layer[layer1].class[class1]=NAME+new_name&... You may need to set validation on name though. Multiple properties can be set at once this way. Nothing has changed in HTML legends.
>
> Steve
>
> ________________________________________
> From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of zach cruise [zachc1980 at gmail.com]
> Sent: Tuesday, January 28, 2014 7:47 PM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] how to map_layer_class_name in 6.4.0?
>
> in the past, I could do a runtime substitution of a class name by
> passing it like so:
>
> ..&map_layer1_class1_name=new_name
>
> where in the map file, I had:
>
> MAP
>  LAYER
>   NAME "layer1"
>   CLASS
>    NAME "class1"
>
> and in the legend file, I had:
>
> [leg_class_name]
>
> so what changed?
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



More information about the MapServer-users mailing list