Function createDrawingLayer

Creates a new drawing layer with the given name. Optionally locks the layer.

Error if the new layer name already exists

  • Parameters

    • layerName: string

      Name of the new drawing layer

    • lock: boolean = false

      If true, the layer is locked

    Returns void