> > 
> > The layers for templates should have set the status to 'OFF' and
> > should not be referenced in allGroups in config.ini if they are only
> > templates for dynamic layers. One could probably also define a second
> > map file just for the dynamic layers, but I don't know if one can
> > transfer the layer definition from one map to another.
> 
> OK, now I have some problems. My template does not get recognized by
> pmapper. It is simple and called 'template'.
> 
> The getLayerByName() inside dyn_createMSlayer() fails. but I cannot say
> why.
> basically I need to do:
> $templateLayer = $this->map->getLayerByName($templateLayName);
> $newMSLayer = $templateLayer;
> $newMSLayer->setMetaData("DESCRIPTION", $dyn_descr);
> $newMSLayer->set("name",  $dyn_name);
> $newMSLayer->set("status", "ON");
> $newMSLayer->set("data",  $dyn_data);
> 
> This does not work with my template layer, but with others already in
> the mapfile?!
> 
> What is wrong here?
> 

what do you mean with "others already in the mapfile"? Where is your template 
layer located? It has to be in the the map file... 

armin
-- 


"Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

Reply via email to