[fusion-commits] r1521 - branches/fusion-1.1/MapGuide/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Thu Sep 11 13:44:26 EDT 2008


Author: madair
Date: 2008-09-11 13:44:26 -0400 (Thu, 11 Sep 2008)
New Revision: 1521

Modified:
   branches/fusion-1.1/MapGuide/php/LoadMap.php
Log:
closes #122: patch applied to 1.1 branch

Modified: branches/fusion-1.1/MapGuide/php/LoadMap.php
===================================================================
--- branches/fusion-1.1/MapGuide/php/LoadMap.php	2008-09-11 17:43:35 UTC (rev 1520)
+++ branches/fusion-1.1/MapGuide/php/LoadMap.php	2008-09-11 17:44:26 UTC (rev 1521)
@@ -209,6 +209,13 @@
             $typeStyle = $scaleRange->getElementsByTagName($typeStyles[$ts]);
             $catIndex = 0;
             for($st = 0; $st < $typeStyle->length; $st++) {
+                
+                // We will check if this typestyle is going to be shown in the legend
+                $showInLegend = $typeStyle->item($st)->getElementsByTagName("ShowInLegend");
+                if($showInLegend->length > 0)
+                    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]);
                 for($r = 0; $r < $rules->length; $r++) {
                     $rule = $rules->item($r);



More information about the fusion-commits mailing list