Skip to content

InteractionFlag

Inherits: IntFlag

Flags to enable/disable certain interaction events on the map.

Example

Properties

  • ALL

    All available interactive flags.

  • DOUBLE_TAP_DRAG_ZOOM

    Zooming with a single-finger double-tap-drag gesture.

  • DOUBLE_TAP_ZOOM

    Zooming with a single-finger double tap gesture.

  • DRAG

    Panning with a single finger or cursor.

  • FLING_ANIMATION

    Fling animation after panning if velocity is great enough.

  • NONE

    No interaction.

  • PINCH_MOVE

    Panning with multiple fingers.

  • PINCH_ZOOM

    Zooming with a multi-finger pinch gesture.

  • ROTATE

    Rotation with two-finger twist gesture.

  • SCROLL_WHEEL_ZOOM

    Zooming with a mouse scroll wheel.

Methods

Properties#

ALL = 1 << 0 | 1 << 1 | 1 << 2 | 1 << 3 | 1 << 4 | 1 << 5 | 1 << 6 | 1 << 7 #

All available interactive flags.

DOUBLE_TAP_DRAG_ZOOM = 1 << 5 #

Zooming with a single-finger double-tap-drag gesture.

DOUBLE_TAP_ZOOM = 1 << 4 #

Zooming with a single-finger double tap gesture.

DRAG = 1 << 0 #

Panning with a single finger or cursor.

FLING_ANIMATION = 1 << 1 #

Fling animation after panning if velocity is great enough.

NONE = 0 #

No interaction.

PINCH_MOVE = 1 << 2 #

Panning with multiple fingers.

PINCH_ZOOM = 1 << 3 #

Zooming with a multi-finger pinch gesture.

ROTATE = 1 << 7 #

Rotation with two-finger twist gesture.

SCROLL_WHEEL_ZOOM = 1 << 6 #

Zooming with a mouse scroll wheel.

Methods#

has_double_tap_drag_zoom(flags: int) -> bool #

Returns:

has_double_tap_zoom(flags: int) -> bool #

Returns:

has_drag(flags: int) -> bool #

Returns:

  • bool

    True if the DRAG interaction flag is enabled.

has_flag(left_flags: int, right_flags: int) -> bool #

Returns:

  • bool

    True if left_flags has at least one member in right_flags (intersection).

has_fling_animation(flags: int) -> bool #

Returns:

has_fling_pinch_zoom(flags: int) -> bool #

Returns:

has_multi_finger(flags: int) -> bool #

Returns:

has_pinch_move(flags: int) -> bool #

Returns:

has_rotate(flags: int) -> bool #

Returns:

  • bool

    True if the ROTATE interactive flag is enabled.

has_scroll_wheel_zoom(flags: int) -> bool #

Returns: