<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><P>Hi,</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I think Try to change function GetTransform() in the markupeditor.php file , Give a Try !!</P>
<P>&nbsp;</P>
<P>--------------------------------------------------------------------------------------------------</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; function GetTransform()<BR>&nbsp;{<BR>&nbsp;&nbsp;$coordSysFactory = new MgCoordinateSystemFactory();<BR>&nbsp;&nbsp;$resourceService = $this-&gt;site-&gt;CreateService(MgServiceType::ResourceService);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;$map = new MgMap();<BR>&nbsp;&nbsp;$map-&gt;Open($resourceService, $this-&gt;args['MAPNAME']);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;$source = $coordSysFactory-&gt;Create($map-&gt;GetMapSRS());&nbsp;<BR>&nbsp;&nbsp;$target = $coordSysFactory-&gt;Create(MarkupManager::LL84WKT);<BR>&nbsp;<BR><EM>&nbsp; </EM><STRONG><EM>//&nbsp;return new MgCoordinateSystemTransform($source, $target);</EM><BR></STRONG>&nbsp;&nbsp;<STRONG>return $coordSysFactory-&gt;GetTransform($source, $target); </STRONG></P>
<P>&nbsp;}</P>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">------------------------------------------------------------------------------------------------------<BR>THIS SHOULD BE CHANGED for the RFC35<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Cheers </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Max !!<BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: "erictsn@cadbeyond.com" &lt;erictsn@cadbeyond.com&gt;<BR>To: MapGuide Users Mail List &lt;mapguide-users@lists.osgeo.org&gt;<BR>Sent: Monday, June 2, 2008 9:04:02 AM<BR>Subject: Re: [mapguide-users] [ZS1] Shareable markups<BR><BR><BR>Thanks for your reply Mauricio.<BR>I copied the common.php of mapviewerphp folder: <BR>I can't to find the $webConFigPath variable of common.php. Actually I did<BR>follow the instruction to isntall MGE. So the path should be by default<BR>setting. The platform is CentOS 4.6 and installed MapGuide 2009. Does it<BR>the "/" or "\" error? Thanks in advance.<BR>==========================================================================================================<BR>&lt;?php<BR><BR>//<BR>//&nbsp; Copyright (C) 2004-2008 by Autodesk, Inc.<BR>//<BR>//&nbsp; This library is free software; you can redistribute it
 and/or<BR>//&nbsp; modify it under the terms of version 2.1 of the GNU Lesser<BR>//&nbsp; General Public License as published by the Free Software Foundation.<BR>//<BR>//&nbsp; This library is distributed in the hope that it will be useful,<BR>//&nbsp; but WITHOUT ANY WARRANTY; without even the implied warranty of<BR>//&nbsp; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.&nbsp; See the GNU<BR>//&nbsp; Lesser General Public License for more details.<BR>//<BR>//&nbsp; You should have received a copy of the GNU Lesser General Public<BR>//&nbsp; License along with this library; if not, write to the Free Software<BR>//&nbsp; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA&nbsp; 02110-1301 <BR>USA<BR>//<BR><BR>function InitializeWebTier()<BR>{<BR>&nbsp; &nbsp; // Initialize web tier with the site configuration file.&nbsp; The config<BR>&nbsp; &nbsp; // file should be two directory levels above this script.<BR>&nbsp; &nbsp; $thisFile =
 __FILE__;<BR>&nbsp; &nbsp; $pos = strrpos($thisFile, '\\');<BR>&nbsp; &nbsp; if ($pos == false)<BR>&nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; $pos = strrpos($thisFile, '/');<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; $cfgFile = substr($thisFile, 0, $pos+1) . "../webconfig.ini";<BR>&nbsp; &nbsp; MgInitializeWebTier($cfgFile);<BR>}<BR><BR>function GetDefaultLocale()<BR>{<BR>&nbsp; &nbsp; return "en"; // localizable string<BR>}<BR><BR>function GetLocalizationPath()<BR>{<BR>&nbsp; &nbsp; $thisFile = __FILE__;<BR>&nbsp; &nbsp; $pos = strrpos($thisFile, '\\');<BR>&nbsp; &nbsp; if ($pos == false)<BR>&nbsp; &nbsp; &nbsp; &nbsp; $pos = strrpos($thisFile, '/');<BR>&nbsp; &nbsp; return substr($thisFile, 0, $pos+1) . "../localized/";<BR>}<BR><BR>function FormatMessage($id, $locale, $params)<BR>{<BR>&nbsp; &nbsp; $text = GetString($id, $locale);<BR>&nbsp; &nbsp; for($i = 0; $i &lt; count($params); $i++)<BR>&nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; $tag = "{" . $i
 . "}";<BR>&nbsp; &nbsp; &nbsp; &nbsp; $pos1 = strpos($text, $tag);<BR>&nbsp; &nbsp; &nbsp; &nbsp; if($pos1 == false)<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<BR>&nbsp; &nbsp; &nbsp; &nbsp; if($pos1 &gt; 0)<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $begin = substr($text, 0, $pos1);<BR>&nbsp; &nbsp; &nbsp; &nbsp; else<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $begin = "";<BR>&nbsp; &nbsp; &nbsp; &nbsp; $end = substr($text, $pos1 + strlen($tag));<BR>&nbsp; &nbsp; &nbsp; &nbsp; $text = $begin . $params[$i] . $end;<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; return $text;<BR>}<BR><BR>function GetSurroundVirtualPath()<BR>{<BR>&nbsp; &nbsp; if (isset($_SERVER["REQUEST_URI"]))<BR>&nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; $path = $_SERVER["REQUEST_URI"];<BR>&nbsp; &nbsp; &nbsp; &nbsp; $baseuri = substr($path, 0, strrpos($path, '?') + 1);<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; else<BR>&nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; $baseuri =
 $_SERVER["PHP_SELF"];<BR>&nbsp; &nbsp; }<BR><BR>&nbsp; &nbsp; return substr($baseuri, 0, strrpos($baseuri, '/') + 1);<BR>}<BR><BR>function GetRootVirtualFolder()<BR>{<BR>&nbsp; &nbsp; if (isset($_SERVER["REQUEST_URI"]))<BR>&nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; $path = $_SERVER["REQUEST_URI"];<BR>&nbsp; &nbsp; &nbsp; &nbsp; $baseuri = substr($path, 0, strrpos($path, '?') + 1);<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; else<BR>&nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; $baseuri = $_SERVER["PHP_SELF"];<BR>&nbsp; &nbsp; }<BR><BR>&nbsp; &nbsp; return substr($baseuri, 0, strpos($baseuri, '/', 1));<BR>}<BR><BR>function GetClientOS() {<BR>&nbsp; &nbsp; if(!isset($_SERVER['HTTP_USER_AGENT']))<BR>&nbsp; &nbsp; &nbsp; &nbsp; return 0;<BR>&nbsp; &nbsp; $agent = $_SERVER['HTTP_USER_AGENT'];<BR>&nbsp; &nbsp; if(strpos($agent, "Windows") != FALSE)<BR>&nbsp; &nbsp; &nbsp; &nbsp; return 0;<BR>&nbsp; &nbsp; else if(strpos($agent, "Macintosh") != FALSE)<BR>&nbsp;
 &nbsp; &nbsp; &nbsp; return 1;<BR>&nbsp; &nbsp; return 2;<BR>}<BR><BR>function EscapeForHtml($str)<BR>{<BR>&nbsp; &nbsp; $org = array("'", "\"", "\n", "&lt;", "&gt;");<BR>&nbsp; &nbsp; $repl = array("'", "&amp;quot;", " ", "&amp;lt;", "&amp;gt;" );<BR>&nbsp; &nbsp; return str_replace($org, $repl, $str);<BR>}<BR><BR>function GetDecimalFromLocalizedString($numberString, $locale)<BR>{<BR>&nbsp; &nbsp; if($locale != null &amp;&amp; $numberString != null)<BR>&nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; // Remove thousand separators<BR>&nbsp; &nbsp; &nbsp; &nbsp; $thousandSeparator = GetLocalizedString("THOUSANDSEPARATOR",<BR>$locale);<BR>&nbsp; &nbsp; &nbsp; &nbsp; if($thousandSeparator != null &amp;&amp; strlen($thousandSeparator) &gt; 0)<BR>&nbsp; &nbsp; &nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $numberString = str_replace($thousandSeparator, "",<BR>$numberString);<BR>&nbsp; &nbsp; &nbsp; &nbsp; }<BR>&nbsp; &nbsp; &nbsp; &nbsp;
 <BR>&nbsp; &nbsp; &nbsp; &nbsp; // Replace localized decimal separators with "."<BR>&nbsp; &nbsp; &nbsp; &nbsp; $decimalSeparator = GetLocalizedString("DECIMALSEPARATOR",<BR>$locale);<BR>&nbsp; &nbsp; &nbsp; &nbsp; if($decimalSeparator != null &amp;&amp; strlen($decimalSeparator) &gt; 0 &amp;&amp;<BR>$decimalSeparator != ".")<BR>&nbsp; &nbsp; &nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $numberString = str_replace($decimalSeparator, ".",<BR>$numberString);<BR>&nbsp; &nbsp; &nbsp; &nbsp; }<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; return $numberString;<BR>}<BR><BR>?&gt;<BR>==========================================================================================================<BR><BR><BR><BR>On Sun, 1 Jun 2008 11:51:29 -0700 (PDT), Mauricio Villablanca<BR>&lt;<A href="mailto:mgvillablanca@yahoo.com" ymailto="mailto:mgvillablanca@yahoo.com">mgvillablanca@yahoo.com</A>&gt; wrote:<BR>&gt; <BR>&gt; In order to get the shareable Markkups working
 first you need to update<BR>&gt; the<BR>&gt; path to your webconfig.ini file (you do that in your common.php file in<BR>&gt; that<BR>&gt; line with the $webConFigPath variable). Then modify the script so that<BR>the<BR>&gt; markups will show up in your map. Also if you want to save your markups<BR>&gt; ina<BR>&gt; different folder, you need to change all references pointing to the<BR>&gt; 'Library:\\Masrkups\' folder.<BR>&gt; <BR>&gt; <BR>&gt; That's pretty much it.<BR>&gt; --<BR>&gt; View this message in context:<BR>&gt; <A href="http://www.nabble.com/Shareable-markups-tp17542284p17588771.html" target=_blank>http://www.nabble.com/Shareable-markups-tp17542284p17588771.html</A><BR>&gt; Sent from the MapGuide Users mailing list archive at <A href="http://nabble.com/" target=_blank>Nabble.com</A>.<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; mapguide-users mailing list<BR>&gt; <A href="mailto:mapguide-users@lists.osgeo.org"
 ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR><BR>_______________________________________________<BR>mapguide-users mailing list<BR><A href="mailto:mapguide-users@lists.osgeo.org" ymailto="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</A><BR><A href="http://lists.osgeo.org/mailman/listinfo/mapguide-users" target=_blank>http://lists.osgeo.org/mailman/listinfo/mapguide-users</A><BR></DIV></div><br>

      </body></html>