MGMap.getMapLayers   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

ActiveX Control: MGCollection getMapLayers()

Plug-In/Java Edition: Vector getMapLayers()

Description

Returns a Vector (or MGCollection) object containing all the map layers defined in the map.

For compatibility between the Autodesk MapGuide Viewer Plug-In, Java Edition, and ActiveX Control, use getMapLayersEx instead of getMapLayers.

Returns

ActiveX Control: MGCollection - A collection of MGMapLayer objects. Returns empty MGCollection if unsuccessful.

Plug-In/Java Edition: Vector - A java.util.Vector of map layer objects. Returns empty Vector if unsuccessful.

Error Codes

none

See Also

MapLayers, getMapLayer, getMapLayersEx