[fusion-commits] r2324 - branches/fusion-2.2/layers/MapGuide/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Jan 21 02:12:29 EST 2011


Author: hubu
Date: 2011-01-20 23:12:29 -0800 (Thu, 20 Jan 2011)
New Revision: 2324

Modified:
   branches/fusion-2.2/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: branches/fusion-2.2/layers/MapGuide/php/LoadMap.php
===================================================================
--- branches/fusion-2.2/layers/MapGuide/php/LoadMap.php	2011-01-20 19:56:47 UTC (rev 2323)
+++ branches/fusion-2.2/layers/MapGuide/php/LoadMap.php	2011-01-21 07:12:29 UTC (rev 2324)
@@ -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