Hello All,
Currently working with the API for MapGuide OpenSource 2.0 and have a
requirement for returning all layers from the MapGuide repository.
I am able to return all layer names for a particular map using the below C#
code
map.Open(resService, mapName);
MgLayerCollection layers = map.GetLayers();
ArrayList layerNames = new ArrayList();
for (int i = 0; i < layers.GetCount(); i++)
{
MgLayer layer = (MgLayer)layers.GetItem(i);
string layerType = layer.GetFeatureGeometryName();
layerNames.Add(layer.GetName());
}
How would I go about returning all Layers in the MapGuide repository as a
large number of layers won't be associated with a map?
Many Thanks,
Adnan
--
View this message in context:
http://www.nabble.com/Return-all-Layers-from-MapGuide-repository-tp17796701p17796701.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users