MGMapLayer.getMapObjectsEx   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

MGCollection getMapObjectsEx()

Description

Gets an MGCollection object containing the map features of the layer that fall within the map extent (the part of the map that is displayed).

If the pan function is used, a subsequent call to getMapObjectsEx will return the displayed map features. However, if the zoom function is used, a subsequent call to getMapObjectsEx will return the highest number of map features that were ever displayed.

This method replaces the getMapObjects method in earlier versions of the Autodesk MapGuide Viewer API and supports both the Autodesk MapGuide Viewer Plug-In and ActiveX Control with the same syntax. The older method will still work in Release 6, but you should use getMapObjectsEx for all future development.

Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" in the Autodesk MapGuide Developer's Guide.

Returns

MGCollection- A collection containing the layer's MGMapObject map features.

Error Codes

-1 (busy)

See Also

MapObjects, getMapObject, getMapObjectsEx in MGSelection