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