• Checks if there is interaction with a shape drawn by the active controller, at a given pixel location.

    Typically, this is used in handle interaction checks, like ShapeTouchHandle.interacts. For example, an extruded shape being edited in 3D can only be moved by dragging its (projected) base shape.

    Only shapes that are drawn by EditHandle.onDraw) are checked for interaction. If you want to check interaction with shapes on the map (outside of a Controller), use Map.pickAt.

    Parameters

    • map: Map

      The map to query

    • x: number

      The x coordinate of the pixel to query. Typically this comes from GestureEvent.viewPoint.

    • y: number

      The y coordinate of the pixel to query. Typically this comes from GestureEvent.viewPoint.

    • radius: number

      A distance, in pixels, around (x,y) to do the query with. See EditSettings.touchInteractionRadius.

    • Optional shape: Shape

      the shape to check for interaction. For example, a subshape of the shape being edited. Only shapes that are drawn by EditHandle.onDraw) are checked for interaction. If no shape is specified, any shape drawn by the controller is an interaction candidate. If shape is defined, it has to be equal to a shape that was drawn (or if it is a shape list, one of the shapes in the shape list has to be equal to a shape that was drawn).

    • Optional strokeOnly: boolean

      A boolean that indicates that only the stroke of shapes should be checked for interaction. Defaults to false

    Returns boolean

    See

    queryControllerDrawings

    Since

    2022.1