[mapguide-users] RE: Get Layer ResourceID via API
Chris Claydon
chris.claydon at autodesk.com
Mon Jan 19 12:55:27 EST 2009
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: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090119/c4363fb8/attachment.html
More information about the mapguide-users
mailing list