Skip to content

InteractionFlag

InteractionFlag #

Bases: IntFlag

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

Example

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

True if the DOUBLE_TAP_DRAG_ZOOM interaction flag is enabled.

has_double_tap_zoom(flags: int) -> bool #

RETURNS DESCRIPTION
bool

True if the DOUBLE_TAP_ZOOM interaction flag is enabled.

has_drag(flags: int) -> bool #

RETURNS DESCRIPTION
bool

True if the DRAG interaction flag is enabled.

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

RETURNS DESCRIPTION
bool

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

has_fling_animation(flags: int) -> bool #

RETURNS DESCRIPTION
bool

True if the FLING_ANIMATION interaction flag is enabled.

has_fling_pinch_zoom(flags: int) -> bool #

RETURNS DESCRIPTION
bool

True if the PINCH_ZOOM interaction flag is enabled.

has_multi_finger(flags: int) -> bool #

RETURNS DESCRIPTION
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 DESCRIPTION
bool

True if the PINCH_MOVE interaction flag is enabled.

has_rotate(flags: int) -> bool #

RETURNS DESCRIPTION
bool

True if the ROTATE interactive flag is enabled.

has_scroll_wheel_zoom(flags: int) -> bool #

RETURNS DESCRIPTION
bool

True if the SCROLL_WHEEL_ZOOM interaction flag is enabled.