Skip to main content

InteractionFlag

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

Example

Inherits: enum.IntFlag

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​

ALLclass-attributeinstance-attribute​

All available interactive flags.

DOUBLE_TAP_DRAG_ZOOMclass-attributeinstance-attribute​

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

DOUBLE_TAP_ZOOMclass-attributeinstance-attribute​

Zooming with a single-finger double tap gesture.

DRAGclass-attributeinstance-attribute​

Panning with a single finger or cursor.

FLING_ANIMATIONclass-attributeinstance-attribute​

Fling animation after panning if velocity is great enough.

NONEclass-attributeinstance-attribute​

No interaction.

PINCH_MOVEclass-attributeinstance-attribute​

Panning with multiple fingers.

PINCH_ZOOMclass-attributeinstance-attribute​

Zooming with a multi-finger pinch gesture.

ROTATEclass-attributeinstance-attribute​

Rotation with two-finger twist gesture.

SCROLL_WHEEL_ZOOMclass-attributeinstance-attribute​

Zooming with a mouse scroll wheel.

Methods​

has_double_tap_drag_zoomstaticmethod​

has_double_tap_drag_zoom(flags: int) -> bool

Returns:

has_double_tap_zoomstaticmethod​

has_double_tap_zoom(flags: int) -> bool

Returns:

has_dragstaticmethod​

has_drag(flags: int) -> bool

Returns:

  • bool - True if the DRAG interaction flag is enabled.

has_flagstaticmethod​

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_animationstaticmethod​

has_fling_animation(flags: int) -> bool

Returns:

has_fling_pinch_zoomstaticmethod​

has_fling_pinch_zoom(flags: int) -> bool

Returns:

  • bool - True if the PINCH_ZOOM interaction flag is enabled.

has_multi_fingerstaticmethod​

has_multi_finger(flags: int) -> bool

Returns:

has_pinch_movestaticmethod​

has_pinch_move(flags: int) -> bool

Returns:

  • bool - True if the PINCH_MOVE interaction flag is enabled.

has_rotatestaticmethod​

has_rotate(flags: int) -> bool

Returns:

  • bool - True if the ROTATE interactive flag is enabled.

has_scroll_wheel_zoomstaticmethod​

has_scroll_wheel_zoom(flags: int) -> bool

Returns: