InteractionFlag
InteractionFlag
#
Bases: IntFlag
Flags to enable/disable certain interaction events on the map.
Example
InteractionFlag.ALL
to enable all eventsInteractionFlag.NONE
to disable all events
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.
has_double_tap_drag_zoom(flags: int) -> bool
#
RETURNS | DESCRIPTION |
---|---|
bool
|
|
has_double_tap_zoom(flags: int) -> bool
#
RETURNS | DESCRIPTION |
---|---|
bool
|
|
has_drag(flags: int) -> bool
#
has_flag(left_flags: int, right_flags: int) -> bool
#
RETURNS | DESCRIPTION |
---|---|
bool
|
|
has_fling_animation(flags: int) -> bool
#
RETURNS | DESCRIPTION |
---|---|
bool
|
|
has_fling_pinch_zoom(flags: int) -> bool
#
RETURNS | DESCRIPTION |
---|---|
bool
|
|
has_multi_finger(flags: int) -> bool
#
RETURNS | DESCRIPTION |
---|---|
bool
|
|
has_pinch_move(flags: int) -> bool
#
RETURNS | DESCRIPTION |
---|---|
bool
|
|
has_rotate(flags: int) -> bool
#
has_scroll_wheel_zoom(flags: int) -> bool
#
RETURNS | DESCRIPTION |
---|---|
bool
|
|