On 30/03/2009 22:12, Rigo Obando wrote:
> Good Afternoon Armin:
>  
> I'm writing from chile. I would like to work without mapfile and replace 
> it with a php file. have any idea how to do that? I would appreciate 
> your references, if I would get a contribution to the development of 
> pmapper.
> I congratulate you for developing pmapper is an excellent tool, and 
> obviously all the work you meant
>  
> Kind regards
>  
> Rigo Obando
> GeoAustralis.cl
> c. 93428885


the $map object is always initialized in /incphp/globals.php. So if you 
want to create your map file dynamically you need to modify the part in 
this file that initializes the $map object. You can start with a 
practically empty map file and add all you want with Mapscript, or it 
seems since MS 5.2.2 or 5.4 you can use the method
$map = ms_newMapObjFromString("MAP \n END");

you should be able to mix "from string" methods with more specific 
Mapscript methods $obj->set(prop, val), $obj->setXYZ(val), etc. For more 
info about this please read the PHP-Mapscript docs and contact the 
Mapserver mailing list. For anything related to p.mapper please use the 
p.mapper mailing list (this mail is in cc to it) and no private mails to 
me.

armin

------------------------------------------------------------------------------
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to