[fusion-commits] r1436 - sandbox/legendImage/MapServer/php

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Jul 4 17:59:42 EDT 2008


Author: Assefa
Date: 2008-07-04 17:59:42 -0400 (Fri, 04 Jul 2008)
New Revision: 1436

Modified:
   sandbox/legendImage/MapServer/php/LoadMap.php
Log:
use the config file for imagepath/url

Modified: sandbox/legendImage/MapServer/php/LoadMap.php
===================================================================
--- sandbox/legendImage/MapServer/php/LoadMap.php	2008-07-04 17:43:39 UTC (rev 1435)
+++ sandbox/legendImage/MapServer/php/LoadMap.php	2008-07-04 21:59:42 UTC (rev 1436)
@@ -325,6 +325,14 @@
     
     for ($i=0; $i<$nTotalClasses;$i++)
       $oImage->pasteImage($aIcons[$i], -1, $i*$nIconWidth, 0);
+
+    /*set the image path and image dir based on what fusion config file*/
+    $configObj = $_SESSION['fusionConfig'];
+    if (isset($configObj->mapserver->imagePath) && isset($configObj->mapserver->imageUrl)) 
+    {
+        $oImage->set("imagepath", $configObj->mapserver->imagePath);
+        $oImage->set("imageurl", $configObj->mapserver->imageUrl);
+    }
     $mapObj->icons_url = $oImage->saveWebImage();
     $mapObj->icons_width = $nIconWidth;
     $mapObj->icons_height = $nIconHeight;



More information about the fusion-commits mailing list