[Chameleon] legendtemplate problem: numlayers
Daniel Morissette
dmorissette at dmsolutions.ca
Thu Aug 12 10:05:42 EDT 2004
Paul Spencer wrote:
> Bart,
>
> 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.
>
Are you sure that it's not Chameleon or the widget that's caching the
numlayers value? (Bart's problem seems to be with numlayers, not
numclasses BTW)
I seem to remember a problem related to that in PHP MapScript but it
would have been fixed a long time ago (back in 2002 according to CVS
logs). I just checked in the 4.2 source and the $layer->numclasses is
synchronized after creating a new class. Same with the $map->numlayers
when adding a new layer.
Daniel
--
------------------------------------------------------------
Daniel Morissette dmorissette at dmsolutions.ca
DM Solutions Group http://www.dmsolutions.ca/
------------------------------------------------------------
More information about the Chameleon
mailing list