[mapserver-users] Change parameters of the map file

Jan Hartmann jhart at frw.uva.nl
Thu Jun 20 09:33:02 EDT 2002

I had the same kind of problem. Some Mapfile parameters seem to be
changeable by setting an appropriately named CGI variable (e.g. "color" by
"map_layer_class_color"), some not (e.g. "outlinecolor" by
"map_layer_class_outline"). You can use Mapscript for this, but it would be
great if the CGI version of Mapserver was consistently scriptable this way.
There are many situations where a full-fledged Mapserver, with Mapscript
installed, cannot be realized, especially on Windows systems. The CGI
version can be installed in a matter of minutes, even on non dedicated

BTW, What about creating the same mechanism for the template file? Every
Mapfile parameter could then be read out from the template, like "color" in
"[map_layer_class_color]". It make the CGI version much better programmable
from Javascript of Flash. For dynamically adding layers or classes etc you
would of course  need the script versions. Would this be very difficult to

Jan Hartmann
Department of Geography
University of Amsterdam
jhart at frw.uva.nl

-----Original Message-----
From: owner-mapserver-users at lists.gis.umn.edu
[mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Nacho
Sent: Thursday, June 20, 2002 10:35 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [mapserver-users] Change parameters of the map file

I'm trying to change parameters of the map file on the fly. I can change the
color of the layers with map_layername_class_color but I can't change the
name of the legend with map_layername_class_name but It doesn't change.
Anybody knows what I'm doing wrong?

MSN Photos es la manera más sencilla de compartir e imprimir sus fotos:

More information about the mapserver-users mailing list