[mapguide-commits] r5383 - trunk/MgDev/Web/src/mapviewerphp
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Nov 9 18:33:30 EST 2010
Author: brucedechant
Date: 2010-11-09 15:33:30 -0800 (Tue, 09 Nov 2010)
New Revision: 5383
Modified:
trunk/MgDev/Web/src/mapviewerphp/layerdefinitionfactory.php
Log:
Fix for trac ticket 1281 - Path corrections and small template extensions in mapviewerphp/layerdefinitionfactory.php
Notes:
- Fixed path
Modified: trunk/MgDev/Web/src/mapviewerphp/layerdefinitionfactory.php
===================================================================
--- trunk/MgDev/Web/src/mapviewerphp/layerdefinitionfactory.php 2010-11-09 22:57:50 UTC (rev 5382)
+++ trunk/MgDev/Web/src/mapviewerphp/layerdefinitionfactory.php 2010-11-09 23:33:30 UTC (rev 5383)
@@ -27,7 +27,7 @@
//$textSymbol - use textsymbol.templ to create it
static function CreateAreaRule($legendLabel, $filterText, $foreGroundColor)
{
- $areaRule = file_get_contents("../../viewerfiles/arearule.templ");
+ $areaRule = file_get_contents("../viewerfiles/arearule.templ");
$areaRule = sprintf($areaRule, $legendLabel, $filterText, $foreGroundColor);
return $areaRule;
}
@@ -37,7 +37,7 @@
//$areaRules - call CreateAreaRule to create area rules
static function CreateAreaTypeStyle($areaRules)
{
- $style = file_get_contents("../../viewerfiles/areatypestyle.templ");
+ $style = file_get_contents("../viewerfiles/areatypestyle.templ");
$style = sprintf($style, $areaRules);
return $style;
}
@@ -49,7 +49,7 @@
//$filter - filter string
static function CreateLineRule($legendLabel, $filter, $color)
{
- $lineRule = file_get_contents("../../viewerfiles/linerule.templ");
+ $lineRule = file_get_contents("../viewerfiles/linerule.templ");
$lineRule = sprintf($lineRule, $legendLabel, $filter, $color);
return $lineRule;
}
@@ -59,7 +59,7 @@
//$lineRules - call CreateLineRule to create line rules
static function CreateLineTypeStyle($lineRules)
{
- $lineStyle = file_get_contents("../../viewerfiles/linetypestyle.templ");
+ $lineStyle = file_get_contents("../viewerfiles/linetypestyle.templ");
$lineStyle = sprintf($lineStyle, $lineRules);
return $lineStyle;
}
@@ -73,7 +73,7 @@
//$color - color code for the symbol color
static function CreateMarkSymbol($resourceId, $symbolName, $width, $height, $color)
{
- $markSymbol = file_get_contents("../../viewerfiles/marksymbol.templ");
+ $markSymbol = file_get_contents("../viewerfiles/marksymbol.templ");
$markSymbol = sprintf($markSymbol, $width, $height, $resourceId, $symbolName, $color);
return $markSymbol;
}
@@ -86,7 +86,7 @@
//$foregroundColor - color code for the foreground color
static function CreateTextSymbol($text, $fontHeight, $foregroundColor)
{
- $textSymbol = file_get_contents("../../viewerfiles/textsymbol.templ");
+ $textSymbol = file_get_contents("../viewerfiles/textsymbol.templ");
$textSymbol = sprintf($textSymbol, $fontHeight, $fontHeight, $text, $foregroundColor);
return $textSymbol;
}
@@ -99,7 +99,7 @@
//$label - use CreateTextSymbol to create it
static function CreatePointRule($legendLabel, $filter, $label, $pointSym)
{
- $pointRule = file_get_contents("../../viewerfiles/pointrule.templ");
+ $pointRule = file_get_contents("../viewerfiles/pointrule.templ");
$pointRule = sprintf($pointRule, $legendLabel, $filter, $label, $pointSym);
return $pointRule;
}
@@ -109,7 +109,7 @@
//$pointRule - use CreatePointRule to define rules
static function CreatePointTypeStyle($pointRule)
{
- $pointTypeStyle = file_get_contents("../../viewerfiles/pointtypestyle.templ");
+ $pointTypeStyle = file_get_contents("../viewerfiles/pointtypestyle.templ");
$pointTypeStyle = sprintf($pointTypeStyle, $pointRule);
return $pointTypeStyle;
}
@@ -121,7 +121,7 @@
//$typeStyle - use one CreateAreaTypeStyle, CreateLineTypeStyle, or CreatePointTypeStyle
static function CreateScaleRange($minScale, $maxScale, $typeStyle)
{
- $scaleRange = file_get_contents("../../viewerfiles/scalerange.templ");
+ $scaleRange = file_get_contents("../viewerfiles/scalerange.templ");
$scaleRange = sprintf($scaleRange, $minScale, $maxScale, $typeStyle);
return $scaleRange;
}
@@ -133,7 +133,7 @@
//$featureClassRange - use CreateScaleRange to define it.
static function CreateLayerDefinition($resourceId, $featureClass, $geometry, $featureClassRange)
{
- $layerDef = file_get_contents("../../viewerfiles/layerdefinition.templ");
+ $layerDef = file_get_contents("../viewerfiles/layerdefinition.templ");
$layerDef = sprintf($layerDef, $resourceId, $featureClass, $geometry, $featureClassRange);
return $layerDef;
}
More information about the mapguide-commits
mailing list