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

Syntax

MGMapLayer viewBuffer()

Description

Creates buffers around the selected map features.

Use MGBufferSetup methods to specify the buffering parameters.

This method always refreshes the map when the autoRefresh flag is set to True or when called from the onViewChanging or onMapLoaded events.

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

MGMapLayer - An MGMapLayer object for the new buffer map layer that was created or the existing buffer map layer to which the buffer objects were added. Returns null if a non-buffer map layer was specified or if no features were selected before calling this method.

Error Codes

-1 (busy)

-12 (invalid selection)

See Also

getBufferSetup, viewBufferDlg, removeMapLayer