<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="2"><span
 style="font-size: 10pt; font-family: 'Courier New';">I wrote: "You
should instead get a reference to the runtime map, and <br>
then call layers.add() with an MgLayer object."<br>
<br>
Which of the mentioned actions are you unsure about?<br>
<br>
</span></font>
<pre class="moz-signature" cols="72">Regards, Kenneth Skovhede, GEOGRAF A/S
</pre>
<br>
<br>
Carmelo Saffioti skrev:
<blockquote cite="mid:B8F9FED8099742B680BA23AC6C8DB579@carmelo"
 type="cite">
  <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>
  <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>&nbsp;</div>
  <div>&nbsp;</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"></font>
  <div>
  <div><font size="2">&nbsp; </font>
  <p>&nbsp;</p>
  </div>
  </div>
  </div>
  </div>
  </div>
  </div>
  </div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
    <div
 style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
    <a moz-do-not-send="true" title="ks@geograf.dk"
 href="mailto:ks@geograf.dk">Kenneth Skovhede, GEOGRAF A/S</a> </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
    <a moz-do-not-send="true" title="mapguide-users@lists.osgeo.org"
 href="mailto:mapguide-users@lists.osgeo.org">MapGuide Users Mail List</a>
    </div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Friday, January 09, 2009 9:52 AM</div>
    <div
 style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><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 color="#660000" face="Courier New" size="2"><span
 style="font-size: 10pt; color: rgb(102, 0, 0); font-family: 'Courier New';">$md</span></font><font
 color="black" face="Courier New" 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
 color="black" face="Courier New" size="2"><span
 style="font-size: 10pt; color: windowtext; font-family: 'Courier New';">
    </span></font><font color="#008200" face="Courier New" 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>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</body>
</html>