| MGMapLayer.lock |
|
boolean lock(String function)
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.
function - The function to enable: either "Geometry" to prevent access to coordinate values, or "LayerSetup" to prevent access to layer setup data.
boolean - Returns True if the method was able to lock the function; otherwise, returns False.
-3 (illegal argument)