I have developed an application which displays several dynamic layers in 
pmapper all integrated with the legend and toc and they interact with some 
custom plugins that I have developed.  Furthermore the layers available and 
filtering on these layers is determined by the user.

The aproach I took was to write some php code that customises the config files 
including the map file and then launches pmapper with the custom config.  Sorry 
I cant give you the code as it 'belongs' to my employer but i can give you an 
idea of how it works.

First the user logs in to the system and the code queries the database 
(postgresql) and determines what layers are available and what filters to 
apply.  The layers are read from a default mapfile the data statement is 
customised to provide filtering and then a new custom mapfile is written.  The 
php_config file is customised for the categories and the config_.. file is also 
customised with allGroups and defGroups definitions.  Pmapper is then launched.

Gabe

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:pmapper-
> [EMAIL PROTECTED] On Behalf Of Armin Burger
> Sent: Wednesday, 30 April 2008 2:43 AM
> To: Rodrigo Gaete
> Cc: pmapper-users list
> Subject: Re: [pmapper-users] Dynamic query join a pmapper layer
> 
> 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


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