<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Kenneth,</FONT></DIV>
<DIV><FONT face=Arial size=2>how would you fix that code? Please let me know
how.</FONT></DIV>
<DIV><FONT face=Arial size=2>But is it everything I need for the steps you
talked me about?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you very much in advance</FONT></DIV>
<DIV><FONT face=Arial size=2>Cheers</FONT></DIV>
<DIV><FONT face=Arial size=2>Carmelo</FONT></DIV>
<DIV>
<DIV>
<DIV>
<DIV>
<DIV><FONT size=2>
<DIV>
<DIV>
<P><FONT
face=Arial></FONT></FONT> </P></DIV></DIV></DIV></DIV></DIV></DIV></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ks@geograf.dk href="mailto:ks@geograf.dk">Kenneth Skovhede, GEOGRAF
A/S</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=mapguide-users@lists.osgeo.org
href="mailto:mapguide-users@lists.osgeo.org">MapGuide Users Mail List</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, January 09, 2009 9:52
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [mapguide-users] Adding a
temporary Layer in MapGuide</DIV>
<DIV><BR></DIV>Please be aware that the code below attempts to create the
layer before the viewer <BR>starts up. As I read the question, the map is
already loaded, but should have the layer added.<BR>Most of the steps are the
same, until this line and down:<BR><FONT face="Courier New" color=#660000
size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(102,0,0); FONT-FAMILY: 'Courier New'">$md</SPAN></FONT><FONT
face="Courier New" color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: 'Courier New'">
</SPAN></FONT><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">=</SPAN></FONT><FONT
face="Courier New" color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: 'Courier New'">
</SPAN></FONT><FONT face="Courier New" color=#008200 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: rgb(0,130,0); FONT-FAMILY: 'Courier New'">"Library://Test/X.MapDefinition"</SPAN></FONT><FONT
face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">;<BR><BR></SPAN></FONT><FONT
size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">You should
instead get a reference to the runtime map, and <BR>then call layers.add()
with an MgLayer object.<BR></SPAN></FONT><FONT face="Courier New" size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT><BR><PRE class=moz-signature cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</PRE><!--[if !mso]><![endif]--><!--[if !mso]><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></BLOCKQUOTE></BODY></HTML>