Returns the LayerState mask for the specified LayerState in the specified database.
LayerState mask.
The layer state mask determines which layer attributes are to be restored from the LayerState.
mask() returns a combination of one or more of the following: