LuciadRIA (2026.0.12)
    Preparing search index...

    A controller that implements the default map behavior.

    See the Managing user input with LuciadRIA controllers dev article for a description of the default map behavior.

    You can override parts of the default behavior by specifying a custom controller as a constructor option. For example, to customize selection:

    class CustomSelectController extends SelectController {

    getPaintRepresentations(event: GestureEvent): PaintRepresentation[] {
    return [PaintRepresentation.BODY]; // disallow selection by label
    }

    isShowBalloon(gestureEvent: GestureEvent, selectionCandidate: PickInfo): boolean {
    return false; // don't show balloons, ever
    }

    }

    map.defaultController = new DefaultController({
    selectController: new CustomSelectController()
    });

    Hierarchy (View Summary)

    Constructors

    Accessors

    • get cursor(): string | null

      The CSS cursor to use on the map, for this controller. If null, the map will fall back to the previous cursor that was set on the map.

      Note that changing this cursor will update the cursor on the map's DOM node. When using multiple controllers (e.g. in a CompositeController), the controller that updates the cursor last (to a non-null value), will override any other non-null cursors of active controllers on the map.

      Returns string | null

      2022.1

    • set cursor(cssCursor: string | null): void

      Parameters

      • cssCursor: string | null

      Returns void

    • get map(): RIAMap | null

      The map on which this controller is currently active or null if this controller is not currently active. This property is read-only.

      Returns RIAMap | null

    • set map(_value: RIAMap | null): void

      Parameters

      Returns void

    Methods

    • Chains a new controller at the end of this CompositeController's delegates. Note that you cannot append controllers while the CompositeController is active on the map.

      Parameters

      • controller: Controller

        The new controller to append to the chain of controllers

      Returns void

    • Chains a new controller to the start of this CompositeController's delegates. Note that you cannot prepend controllers while the CompositeController is active on the map.

      Parameters

      • controller: Controller

        The new controller to prepend to the chain of controllers

      Returns void

      2024.0

    Events

    • An event indicating that this Controller has been activated. Activated means that the controller is active on the map, and the controller's onActivate has been called.

      You can use this event to set up UI elements or other listeners related to the controller and the controller's map.

      Parameters

      • event: "Activated"
      • callback: (map: RIAMap) => void
      • Optionalcontext: any

      Returns Handle

      2021.0

    • An event indicating that this Controller has been deactivated. Deactivated means that the controller has been removed from the map, and the controller's onDeactivate has been called.

      You can use this event to clean up UI elements or other listeners related to the controller and the controller's map.

      Parameters

      • event: "Deactivated"
      • callback: (map: RIAMap) => void
      • Optionalcontext: any

      Returns Handle

      2021.0

    • An event indicating that this Controller is invalidated. Invalidated means that the Controller requests for its onDraw to be called during the next rendering pass (because its appearance has changed). This event fires when invalidate is called.

      Parameters

      • event: "Invalidated"
      • callback: () => void
      • Optionalcontext: any

      Returns Handle