[mapguide-users] Adding a temporary Layer in MapGuide

Kenneth Skovhede, GEOGRAF A/S ks at geograf.dk
Mon Jan 12 17:18:19 EST 2009


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:ks at geograf.dk>
>     *To:* MapGuide Users Mail List
>     <mailto:mapguide-users at lists.osgeo.org>
>     *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
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090112/5de1587f/attachment.html


More information about the mapguide-users mailing list