Trouble Adding Existing Layers Programmatically
Buscher, Shane
Shane.Buscher at nngco.com
Wed Dec 20 08:48:16 EST 2006
I have some layers that exist in my repository, but aren't added to the
published map with Studio. Instead, I want end users to be able to add
and remove these layers from the repository at runtime. I'm using the
MgLayerCollection.Add method to display layers, but they don't show up
in the map. According to the developers guide, firing this method
should automatically add a layer to the map (p. 48). The layers I'm
trying to add do get added to the collection, but don't display even
after performing a MgLayer.Visible=True and MgLayer.ForceRefresh. I am
also calling the Viewer API to refresh: parent.mapFrame.Refresh().
Anyone have any suggestions or sample code?
Regards,
Shane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide_users/attachments/20061220/cac92424/attachment.html
More information about the Mapguide_users
mailing list