GeoLeaf Core API - v3.19.0
    Preparing search index...

    Function armToolCursor

    • Arms a tool: claims exclusive mode and, when cursor is given, paints it on the canvas.

      Without cursor the flag alone is set and the cursor is left exactly as it is — for a tool that manages its own cursor, or shows none.

      Idempotent on the saved value — arming twice does not lose the original cursor.

      Parameters

      • map: CursorCapableMap

        The map the tool operates on (adapter or native).

      • Optionalcursor: string

        CSS cursor keyword, e.g. "crosshair"; omit it to leave the cursor alone.

      Returns void