[mapguide-commits] r6793 - branches/2.4/MgDev/Web/src/mapviewerphp

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Jun 19 04:35:00 PDT 2012


Author: jng
Date: 2012-06-19 04:34:59 -0700 (Tue, 19 Jun 2012)
New Revision: 6793

Modified:
   branches/2.4/MgDev/Web/src/mapviewerphp/mapframe.php
Log:
#1263: Force the use of . as the decimal separator when emitting out finite display scales to ajaxmappane.templ. This is for the PHP viewer

Modified: branches/2.4/MgDev/Web/src/mapviewerphp/mapframe.php
===================================================================
--- branches/2.4/MgDev/Web/src/mapviewerphp/mapframe.php	2012-06-19 11:34:34 UTC (rev 6792)
+++ branches/2.4/MgDev/Web/src/mapviewerphp/mapframe.php	2012-06-19 11:34:59 UTC (rev 6793)
@@ -118,7 +118,7 @@
             $scales[$i] = $map->GetFiniteDisplayScaleAt($i);
         sort($scales);
         for($i = 0; $i < count($scales); $i ++)
-            $scaleCreationCode = $scaleCreationCode . "scales[" . $i . "]=" . $scales[$i] . "; ";
+            $scaleCreationCode = $scaleCreationCode . "scales[" . $i . "]=" . str_replace(",", ".", $scales[$i]) . "; ";
 
         $mapStateId = new MgResourceIdentifier("Session:" . $sessionId . "//" . $mapName . "." . MgResourceType::Map);
         $map->Save($resourceSrvc, $mapStateId);



More information about the mapguide-commits mailing list