phpmapscript: changing a layer's style

Pietro Giannini pgiannini at BYTEWISE.IT
Mon Oct 23 06:16:05 EDT 2006


Dylan,

If you.re using mapserver as cgi you can change the mapfile parameters
through a URL:
http://mapserver.gis.umn.edu/docs/reference/cgi/controls (end of
document: "Changing map file parameters via a form or a URL").

Instead, via php and mapscript you can change the properties of the layer
object via the method:

$layer->set(property_name, new_value).

ciao

___________________________
      Pietro Giannini
  Bytewise srl - Area GIS
41°50'38.58"N 12°29'13.39"E




On Lun, 23 Ottobre 2006 6:47, Dylan Beaudette disse:
> Greetings,
>
> is there a simple way to change an existing layer's style?
>
> so far i am able to change a layer's filter expression, etc. but not able
> to
> adjust the style defined in the first class.
>
> any examples out there?
>
> thanks in advance!
>
> --
> Dylan Beaudette
> Soils and Biogeochemistry Graduate Group
> University of California at Davis
> 530.754.7341
>



More information about the mapserver-users mailing list