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

Syntax

boolean lock(String function)

Description

Prevents Autodesk MapGuide Viewer from having access to either coordinate values or map layer setup data, depending on the value of the function parameter that is passed in.

A value of "Geometry" prevents access to coordinate data, a value of "LayerSetup" prevents access to layer setup data. This method is required if the author of the map checked the Enable access to map layer setup with the following key or the Enable access to coordinate values with the following key check box on the Security tab of the Map Layer Properties dialog box, and the if API unlocked either function with the unlock method.

Parameters

function - The function to enable: either "Geometry" to prevent access to coordinate values, or "LayerSetup" to prevent access to layer setup data.

Returns

boolean - Returns True if the method was able to lock the function; otherwise, returns False.

Error Codes

-3 (illegal argument)

See Also

unlock, isLocked