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

Which of the mentioned actions are you unsure about?

Regards, Kenneth Skovhede, GEOGRAF A/S



Carmelo Saffioti skrev:
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 <mailto:[email protected]>
    *To:* MapGuide Users Mail List
    <mailto:[email protected]>
    *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
------------------------------------------------------------------------

_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Reply via email to