[fusion-commits] r2315 - trunk/layers/MapGuide/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Jan 10 00:42:54 EST 2011


Author: hubu
Date: 2011-01-09 21:42:54 -0800 (Sun, 09 Jan 2011)
New Revision: 2315

Modified:
   trunk/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: trunk/layers/MapGuide/php/LoadMap.php
===================================================================
--- trunk/layers/MapGuide/php/LoadMap.php	2011-01-07 20:54:00 UTC (rev 2314)
+++ trunk/layers/MapGuide/php/LoadMap.php	2011-01-10 05:42:54 UTC (rev 2315)
@@ -345,7 +345,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