[Date Prev][Date Next] [Chronological] [Thread] [Top]

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



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