[mapserver-users] PHP Mapscript Newbie: trouble with layers and logging.

Daniel Morissette morissette at dmsolutions.ca
Fri Jun 28 05:52:40 PDT 2002


Ben Logan wrote:
> 
> I have the following code:
> 
> ...
> $map = ms_newMapObj($map_path.$map_file);
> ...
> $image = $map->draw();
> $places_layer = $map->getLayer(1);
> $places_layer->status = MS_ON;

You have to use the set() method to set member variables in all PHP
MapScript object classes, i.e.

  $places_layer->set("status", MS_ON);


-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.



More information about the MapServer-users mailing list