[Chameleon-dev] [Bug 664] LegendTemplateGetLayerName javascript array contents not always correct

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Fri Sep 10 07:40:04 EDT 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=664

bartvde at xs4all.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



------- Additional Comments From bartvde at xs4all.nl  2004-09-10 07:40 -------
I have found an issue with this fix and propose the following now:

$icounter = 0;

for( $i=0; $i< $oMap->numlayers; $i++)
{
  $oLayer = $oMap->getLayer( $i );
  if ($oLayer->status == MS_DELETE) { }
  else
  {
    $oLayer->setmetadata( "layer_index", $icounter );
    $szLayers .= 'aLayers['.$icounter.'] = "'.$oLayer->name.'";'."\n";
    $icounter++;
  }
}



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list