[fusion-commits] r2332 - sandbox/adsk/2.3r/layers/MapGuide/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Jan 31 02:17:54 EST 2011


Author: hubu
Date: 2011-01-30 23:17:54 -0800 (Sun, 30 Jan 2011)
New Revision: 2332

Modified:
   sandbox/adsk/2.3r/layers/MapGuide/php/LoadMap.php
Log:
on behalf of Aleck

Ticket #427: In line 348 //trunk/layers/MapGuide/php/LoadMap.php, it always process the first type-style in the loop. However, multiple CompositeTypeStyles? may exist, in which case, it'll display only rules for the first one. 

Modified: sandbox/adsk/2.3r/layers/MapGuide/php/LoadMap.php
===================================================================
--- sandbox/adsk/2.3r/layers/MapGuide/php/LoadMap.php	2011-01-28 10:01:08 UTC (rev 2331)
+++ sandbox/adsk/2.3r/layers/MapGuide/php/LoadMap.php	2011-01-31 07:17:54 UTC (rev 2332)
@@ -344,7 +344,7 @@
                     if($showInLegend->item(0)->nodeValue == "false")
                         continue;   // This typestyle does not need to be shown in the legend
 
-                $rules = $typeStyle->item(0)->getElementsByTagName($ruleNames[$ts]);
+                $rules = $typeStyle->item($st)->getElementsByTagName($ruleNames[$ts]);
                 for($r = 0; $r < $rules->length; $r++) {
                     $rule = $rules->item($r);
                     $label = $rule->getElementsByTagName("LegendLabel");



More information about the fusion-commits mailing list