Viewer - Drawing Tools
    Preparing search index...

    Function createDrawingTools

    • Create a new instance of DrawingTools.

      Multiple instances can be active simultaneously. Each returned instance is independent and must be closed individually when no longer needed.

      Parameters

      • viewport: IViewportApi

        The viewport to which the DrawingTools should be attached.

      • callbacks: Callbacks
      • settings: Settings
      • OptionalcustomDefaultTextures: { [key: string]: IMapData | Promise<IMapData> }

        An object containing custom default textures. The keys should correspond to the texture names used in the properties, and the values should be either a Promise that resolves to an IMapData or an IMapData object.

      • OptionalparentNode: ITreeNode

      Returns IDrawingToolsApi

      The DrawingTools instance.