[mapserver-users] PHP/MapScript and STYLEITEM "AUTO"

Daniel Morissette morissette at dmsolutions.ca
Mon May 6 09:07:03 EDT 2002


Agnieszka ¯ak wrote:
> 
> I want to add few layers in PHP. How can I set STYLEITEM "AUTO" and
> PROJECTION "AUTO" using PHP (connection type MS_OGR, MapServer 3.5).
> 

STYLEITEM was missing in the PHP layerObj wrapper definition.  I added
it in CVS, and you should be able to set it like this:

  $layer->set("styleitem", "AUTO");

About the projection, did you try?

  $layer->setProjection("AUTO");

-- 
------------------------------------------------------------
 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