MgLayer objects) that are rendered to create a composite image. Each layer has properties that determine how it displays in the map and map legend. Some of the properties are:
A map contains one or more layers (MgMap::GetLayers() method returns an MgLayerCollection object that contains all the layers in the map. The MgLayerCollection::GetItem() method returns an individual MgLayer object, by either index number in the collection or layer name.
The$layers is a collection containing the layers in a map, then $layers->GetItem(0) returns the top-most layer.
Layers in the collection are sorted by drawing order, with the top layers at the beginning of the collection. For example, using PHP syntax, if