InteractionFlag
Inherits: IntFlag
Flags to enable/disable certain interaction events on the map.
Example
InteractionFlag.ALL
to enable all eventsInteractionFlag.NONE
to disable all events
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
-
has_double_tap_drag_zoom
–Returns:
-
has_double_tap_zoom
–Returns:
-
has_drag
–Returns:
-
has_flag
–Returns:
-
has_fling_animation
–Returns:
-
has_fling_pinch_zoom
–Returns:
-
has_multi_finger
–Returns:
-
has_pinch_move
–Returns:
-
has_rotate
–Returns:
-
has_scroll_wheel_zoom
–Returns:
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:
-
bool
–True
if theDOUBLE_TAP_DRAG_ZOOM
interaction flag is enabled.
has_double_tap_zoom(flags: int) -> bool
#
Returns:
-
bool
–True
if theDOUBLE_TAP_ZOOM
interaction flag is enabled.
has_flag(left_flags: int, right_flags: int) -> bool
#
Returns:
-
bool
–True
ifleft_flags
has at least one member inright_flags
(intersection).
has_fling_animation(flags: int) -> bool
#
Returns:
-
bool
–True
if theFLING_ANIMATION
interaction flag is enabled.
has_fling_pinch_zoom(flags: int) -> bool
#
Returns:
-
bool
–True
if thePINCH_ZOOM
interaction flag is enabled.
has_multi_finger(flags: int) -> bool
#
Returns:
-
bool
–True
if any multi-finger gesture flags (MultiFingerGesture.PINCH_MOVE
,MultiFingerGesture.PINCH_ZOOM
,MultiFingerGesture.ROTATE
) are enabled.
has_pinch_move(flags: int) -> bool
#
Returns:
-
bool
–True
if thePINCH_MOVE
interaction flag is enabled.
has_scroll_wheel_zoom(flags: int) -> bool
#
Returns:
-
bool
–True
if theSCROLL_WHEEL_ZOOM
interaction flag is enabled.