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) <[email protected]> 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: [email protected] > [[email protected]] on behalf of zach cruise > [[email protected]] > Sent: Tuesday, January 28, 2014 7:47 PM > To: [email protected] > 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
