In the current dev version there is a class to add dynamic layers. See 
the files under the plugin 'dynlayersample'. The layers need to be 
defined in JSON syntax, see example in 'dynlayer_def.txt'.

This is currently under development, some parts might change to have a 
+/- generic solution that does not require to re-develop everything 
again. The idea is to have users write their own function to define the 
dynlayers in the required JSON syntax and add them to the session, then 
they will be read automatically. The possibilities to create layers 
dynamically are virtually indefinite (reading from database, text files, 
etc). So a complete generic functionality without any custom development 
is impossible. Some parts need to be defined though, like layer order.

Since p.mapper uses an additional definition of layers/groups to 
circumvent some shortcomings in Mapscript, simply adding a layer to the 
map object will just draw it on the map, but maybe not for printing or 
in the TOC.

armin


On 29/04/2008 15:47, Rodrigo Gaete wrote:
> Hi pmapper users
> 
> I need create a new layer dynamically in pmapper, but i don't have idea how 
> can do it.
> 
> My problem:
> Through another system in php, I am crossing information from various data 
> base (postgresql). 
>  I want to show that georeferenced information by council through the 
> pmapper. 
>  I have several layers in pmapper and would open the pmapper with that 
> dynamic layer.
>  How to do this?
> 
> I saw that there is a customlayers.php, but I could not use it.
> 
> Thanks,
> Rodrigo Gaete
> 
> 
> 
> 
> 
>       Abra sua conta no Yahoo! Mail, o único sem limite de espaço para 
> armazenamento!
> http://br.mail.yahoo.com/
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> pmapper-users mailing list
> pmapper-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pmapper-users


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to