Hello Armin,

On Thu, 08 Jun 2006 16:32:58 +0200 "Armin Burger"
<armin.burger at gmx.net> wrote:

> Stefan
> 
> I attached a sample script to add dynamic layers. You will then have
> to add in map.php (and probably all other scripts where the layers
> are used, like query etc.) the function (it's already in map.php, but
> empty):
> 
> function pmap_addCustomLayers()
> {
>     $dyn = new DynLayer($this->map);
>     $res = $dyn->dyn_addLayersToMap(false);     
> }
> 
> It means: once the layers have to be initiated and added to
> 'grouplist' session var and then all the time added to the map where
> required. Maybe one could also put this into the setGroups()
> function. Please see if you can work with this short description.
> There are some comments in the attached file as well.

Wow, what fast reply. Thanks you! I quickly browsed through the file
dynlayer.php and it looks good. I already did it half way through my
way, but I think it is cleaner to use your script.

Anyway, I do not really understand what I need to call to add a layer
with your script. 
Can you provide a short snippet where how to use this?

TIA

        Stephan


 
> Armin 
> 
> 
> > 
> > Dear pmapper-users,
> > 
> > I would like to add dynamic layers to my pmapper2-app (code from
> > 05.06.2006 zipfile).
> > 
> > After inspecting the session-vars I *think* I need to add it an
> > array containing information about the new layer to
> > $_SESSION[grouplist].
> > 
> > I tried this but the TOC did not update accordingly.
> > 
> > Can someone provide some tipps where to start looking for the needed
> > changes to display the new maplayer?
> > 
> > THanks in advance.
> > 
> > Best
> >     Stephan
> > 
> > _______________________________________________
> > Pmapper-users mailing list
> > Pmapper-users at faunalia.it
> > http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users
> 



-- 
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office      -     Mengendamm 16d      -     D-30177 Hannover
Internet: www.gdf-hannover.de      -      Email: holl at gdf-hannover.de
Phone : ++49-(0)511.39088507       -        Fax: ++49-(0)511.39088508

Reply via email to