[mapguide-users] Adding a temporary Layer in MapGuide

Carmelo Saffioti csaffi at libero.it
Mon Jan 12 09:17:34 EST 2009


Hi Kenneth,
how would you fix that code? Please let me know how.
But is it everything I need for the steps you talked me about?


Thank you very much in advance
Cheers
Carmelo
  


  ----- Original Message ----- 
  From: Kenneth Skovhede, GEOGRAF A/S 
  To: MapGuide Users Mail List 
  Sent: Friday, January 09, 2009 9:52 AM
  Subject: Re: [mapguide-users] Adding a temporary Layer in MapGuide


  Please be aware that the code below attempts to create the layer before the viewer 
  starts up. As I read the question, the map is already loaded, but should have the layer added.
  Most of the steps are the same, until this line and down:
  $md = "Library://Test/X.MapDefinition";

  You should instead get a reference to the runtime map, and 
  then call layers.add() with an MgLayer object.


Regards, Kenneth Skovhede, GEOGRAF A/S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090112/c96ba2b4/attachment.html


More information about the mapguide-users mailing list