<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><P>Works perfectly now, thanks.</P>
<P><BR>&nbsp;</P>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: verdana, helvetica, sans-serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Andy Morsell &lt;amorsell@spatialgis.com&gt;<BR>To: MapGuide Users Mail List &lt;mapguide-users@lists.osgeo.org&gt;<BR>Sent: Thursday, August 28, 2008 12:00:10 PM<BR>Subject: RE: [mapguide-users] GT Markup sample in MGOS 2.1<BR><BR>
<STYLE>
<!-- 
 _filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle18
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
span.SpellE
        {}
.MsoChpDefault
        {font-size:10.0pt;}
 _filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {}
-->
</STYLE>

<DIV class=Section1>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">Hi Denis,</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">There was a documented API change between the two releases.<SPAN>&nbsp; </SPAN>See: <A href="http://trac.osgeo.org/mapguide/wiki/Release/2.0/Notes" target=_blank rel=nofollow>http://trac.osgeo.org/mapguide/wiki/Release/2.0/Notes</A></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">&nbsp;</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">To fix the markup GT, edit the markupeditor.php file.<SPAN>&nbsp; </SPAN>In the GetTransform() function, change the line that reads:</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">&nbsp;</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">return new MgCoordinateSystemTransform($source, $target);</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">to</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">return $<SPAN class=SpellE>coordSysFactory</SPAN>-&gt;<SPAN class=SpellE>GetTransform</SPAN>($source, $target);</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">&nbsp;</SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Tahoma color=#1f497d size=1><SPAN style="FONT-SIZE: 9pt; COLOR: #1f497d; FONT-FAMILY: 'Tahoma', 'sans-serif'">Andy Morsell, P.E.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Tahoma color=#1f497d size=1><SPAN style="FONT-SIZE: 9pt; COLOR: #1f497d; FONT-FAMILY: 'Tahoma', 'sans-serif'">Spatial Integrators, Inc.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Tahoma color=#1f497d size=1><SPAN style="FONT-SIZE: 9pt; COLOR: #1f497d; FONT-FAMILY: 'Tahoma', 'sans-serif'"><A href="http://www.spatialgis.com/" target=_blank>www.SpatialGIS.com</A></SPAN></FONT></P></DIV>
<P class=MsoNormal><FONT face=Calibri color=#1f497d size=2><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri', 'sans-serif'">&nbsp;</SPAN></FONT></P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma', 'sans-serif'">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma', 'sans-serif'"> mapguide-users-bounces@lists.osgeo.org [mailto:mapguide-users-bounces@lists.osgeo.org] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Denis Lalonde<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, August 28, 2008 8:20 AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> MapGuide Users Mail List<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [mapguide-users] GT Markup sample in MGOS 2.1</SPAN></FONT></P></DIV></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></P>
<DIV>
<DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri', 'sans-serif'">Last year, I modified the sharable Markup sample in the GT app (</SPAN></FONT><A href="http://data.mapguide.com/mapguide/gt/index.php" target=_blank rel=nofollow><FONT face=Calibri color=purple><SPAN style="COLOR: purple; FONT-FAMILY: 'Calibri', 'sans-serif'">http://data.mapguide.com/mapguide/gt/index.php</SPAN></FONT></A><FONT face=Calibri><SPAN style="FONT-FAMILY: 'Calibri', 'sans-serif'">) to be session based.<SPAN>&nbsp; </SPAN>It worked great in MGE2008.</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri', 'sans-serif'">I can't seem to get it&nbsp;to work with MGOS 2.1 and am having difficulties.</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri', 'sans-serif'">I’ve traced the problem to the line that calls: “return new MgCoordinateSystemTransform($source, $target);” in the GetTransform() Function on the markupeditor.php page (See below). It gets called from the AddPolygon() function of the same page.</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face=Calibri size=3><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri', 'sans-serif'">What am I missing? No errors are given, just blank page.</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">function GetTransform()<BR>&nbsp;{<BR>&nbsp;&nbsp;$coordSysFactory = new MgCoordinateSystemFactory();<BR>&nbsp;&nbsp;$resourceService = $this-&gt;site-&gt;CreateService(0);//MgServiceType::ResourceService);<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;$map = new MgMap();<BR>&nbsp;&nbsp;$map-&gt;Open($resourceService, $this-&gt;args['MAPNAME']);</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;&nbsp;$source = $coordSysFactory-&gt;Create($map-&gt;GetMapSRS());&nbsp;</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;&nbsp;$target = $coordSysFactory-&gt;Create(MarkupManager::LL84WKT);</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">//ERROR OCCURS HERE============================================</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><STRONG><B><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp; &nbsp;return new MgCoordinateSystemTransform($source, $target);</SPAN></FONT></B></STRONG></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">//=================================================================<BR>&nbsp;}</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Thanks,</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 10pt"><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Denis</SPAN></FONT></P></DIV></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></P></DIV></DIV></DIV></div><br>



      </body></html>