If you call the GetItem() method on the MgLayerCollection, it returns you an MgLayerBase object. Calling GetLayerDefinition() on this object should return you an MgResourceIdentifier corresponding to the layer definition.
Chris. From: [email protected] [mailto:[email protected]] On Behalf Of Warren Medermach (External) Sent: Monday, January 19, 2009 10:41 AM To: MapGuide Users Mail List Subject: [mapguide-users] Get Layer ResourceID via API Hello all, I think I'm missing something simple... I want to get the ResourceId for a specific layer, where I know the layer name. IOW, in code I have iterated through the layers in the layercollection and have found the specific layer I am interested in (Parcels). How can I get the ResourceId for this (Parcels) layer? Thanks so much Warren M
_______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
