InteractionFlag
Flags to enable/disable certain interaction events on the map.
Example
- flet_map.InteractionFlag.ALL to enable all events
- flet_map.InteractionFlag.NONE to disable all events
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
has_double_tap_drag_zoom- Returns:Trueif the DOUBLE_TAP_DRAG_ZOOM interaction flag is enabled.has_double_tap_zoom- Returns:Trueif the DOUBLE_TAP_ZOOM interaction flag is enabled.has_drag- Returns:Trueif the DRAG interaction flag is enabled.has_flag- Returns:Trueifleft_flagshas at least one member inright_flags(intersection).has_fling_animation- Returns:Trueif the FLING_ANIMATION interaction flag is enabled.has_fling_pinch_zoom- Returns:Trueif the PINCH_ZOOM interaction flag is enabled.has_multi_finger- Returns:Trueif any multi-finger gesture flags (flet_map.MultiFingerGesture.PINCH_MOVE, flet_map.MultiFingerGesture.PINCH_ZOOM, flet_map.MultiFingerGesture.ROTATE) are enabled.has_pinch_move- Returns:Trueif the PINCH_MOVE interaction flag is enabled.has_rotate- Returns:Trueif the ROTATE interactive flag is enabled.has_scroll_wheel_zoom- Returns:Trueif the SCROLL_WHEEL_ZOOM interaction flag is enabled.
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)Returns:
- bool -
Trueif the DOUBLE_TAP_DRAG_ZOOM interaction flag is enabled.
has_double_tap_zoomstaticmethod
has_double_tap_zoom(flags: int)Returns:
- bool -
Trueif the DOUBLE_TAP_ZOOM interaction flag is enabled.
has_dragstaticmethod
has_drag(flags: int)Returns:
- bool -
Trueif the DRAG interaction flag is enabled.
has_flagstaticmethod
has_flag(left_flags: int, right_flags: int)Returns:
- bool -
Trueifleft_flagshas at least one member inright_flags(intersection).
has_fling_animationstaticmethod
has_fling_animation(flags: int)Returns:
- bool -
Trueif the FLING_ANIMATION interaction flag is enabled.
has_fling_pinch_zoomstaticmethod
has_fling_pinch_zoom(flags: int)Returns:
- bool -
Trueif the PINCH_ZOOM interaction flag is enabled.
has_multi_fingerstaticmethod
has_multi_finger(flags: int)Returns:
- bool -
Trueif any multi-finger gesture flags (flet_map.MultiFingerGesture.PINCH_MOVE, flet_map.MultiFingerGesture.PINCH_ZOOM, flet_map.MultiFingerGesture.ROTATE) are enabled.
has_pinch_movestaticmethod
has_pinch_move(flags: int)Returns:
- bool -
Trueif the PINCH_MOVE interaction flag is enabled.
has_rotatestaticmethod
has_rotate(flags: int)Returns:
- bool -
Trueif the ROTATE interactive flag is enabled.
has_scroll_wheel_zoomstaticmethod
has_scroll_wheel_zoom(flags: int)Returns:
- bool -
Trueif the SCROLL_WHEEL_ZOOM interaction flag is enabled.