[mapguide-commits] r5097 - trunk/MgDev/Web/src/mapviewerphp
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Aug 31 05:50:13 EDT 2010
Author: liuar
Date: 2010-08-31 09:50:13 +0000 (Tue, 31 Aug 2010)
New Revision: 5097
Modified:
trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php
Log:
Submit on behalf of Mars Wu for Quick Plot.
Modified: trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php
===================================================================
--- trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php 2010-08-31 08:16:06 UTC (rev 5096)
+++ trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php 2010-08-31 09:50:13 UTC (rev 5097)
@@ -99,7 +99,7 @@
// Get the correct port number
$mapAgent .= "://" . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"];
// Get the correct virtual directory
- $mapAgent .= substr($_SERVER["URL"], 0, strpos($_SERVER["URL"], "/", 1) + 1);
+ $mapAgent .= substr($_SERVER["REQUEST_URI"], 0, strpos($_SERVER["REQUEST_URI"], "/", 1));
$mapAgent .="/mapagent/mapagent.fcgi?VERSION=1.0.0&OPERATION=GETMAPIMAGE" .
"&SESSION=$sessionID" .
"&MAPNAME=$mapName" .
@@ -111,6 +111,7 @@
"&SETDISPLAYWIDTH=$toSize->width" .
"&SETDISPLAYHEIGHT=$toSize->height" .
"&CLIP=0";
+
$image = imagecreatefrompng($mapAgent);
// Rotate the picture back to be normalized
$normalizedImg = imagerotate($image, -$rotation, 0);
More information about the mapguide-commits
mailing list