[Chameleon] legendtemplate problem: numlayers

Paul Spencer pagameba at magma.ca
Thu Aug 12 08:55:05 EDT 2004


I think there is some problem with PHP and extensions, for instance if 
you add a class then layer->numclasses is not updated unless you refetch 
the layer ($oLayer = $oMap->getLayer( 0 ) for instance) ... this 
synchronization (or lack thereof) seems to cause all kinds of problems.

The only thing I can think of for the map object itself is to save and 
reopen it ...



bartvde at xs4all.nl wrote:

> Hi list,
> I have the following problem which I cannot seem to tackle:
> I have a widget which adds a layer to a map, it is a modification of the
> catalog widget.
> The legendtemplate itself shows the added layer correctly, but the
> numlayers of the map object still has the old value (it lags behind one
> submit all the time) and because of this the LegendTemplateGetLayerName
> array is not complete and cannot be used correctly with javascript.
> Any ideas what could be causing this problem?
> Thanks in advance.
> Best regards,
> Bart
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon

|Paul Spencer                           pspencer at dmsolutions.ca   |
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|

More information about the Chameleon mailing list