Hello Armin, 

On Tue, 18 Apr 2006 23:24:42 +0200 Armin Burger <armin.burger at gmx.net>
wrote:

thanks for you fast reply.

> Stephan,
> 
> unfortunately it is not really straightforward to work with
> dynamically created layers and p.mapper. This is due to the way how
> layers and groups are handled in p.mapper. For various reasons
> pmapper uses its own classes to store information about groups and
> layers. Among others, it was necessary as it is not possible to
> extend PHP Mapscript classes like 'normal' PHP classes, and the
> properties of the Mapscript classes cannot be save in the session.

OK.

> 
> So additionally of adding the newly created layer to the map, it also 
> has to be added to the 'grouplist' array with all the required 
> properties. This is not really easy to understand, I have to admit. 
> Without that, not only the legend but also queries (and maybe other 
> stuff) will not work.

Good to know. I did not try to query my newly added layers yet...

> 
> I am using dynamic layers for a few applications and always started
> with a more or less completely adapted way to create them. Since I
> was tired of this not very clever approach, I started for my last
> application a more standardized way to handle this.

Is there any chance to implement the more generic way into the recent
pmapper2-version?

> 
> I will check the code and will make it available once it is a bit
> more tested. If you wish to have a look on it already now I can send
> you the required script. There is mainly one function that needs to
> be adapted to every application since there are indefinite ways to
> define layers with all kind of properties. The others should mainly
> be generic.

Sounds promissing. I will have a look later when you think it is ready
for your release. 

Thanks for clearing this. I am sure the approach is a nice-to-have
feature in pmapper, I would love to contribute in a way if possible.

Best
        Stephan

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