Skip to main content

InteractionConfiguration

Configures user interaction behavior.

Properties

Properties

cursor_keyboard_rotation_configurationclass-attributeinstance-attribute

cursor_keyboard_rotation_configuration: CursorKeyboardRotationConfiguration = field(default_factory=(lambda: CursorKeyboardRotationConfiguration()))

Options to control the keyboard and mouse cursor being used together to rotate the map.

enable_multi_finger_gesture_raceclass-attributeinstance-attribute

enable_multi_finger_gesture_race: bool = False

If True, then rotation_threshold and pinch_zoom_threshold and pinch_move_threshold will race. If multiple gestures win at the same time, then precedence: pinch_zoom_win_gestures > rotation_win_gestures > pinch_move_win_gestures

flagsclass-attributeinstance-attribute

Defines the map events to be enabled/disabled.

keyboard_configurationclass-attributeinstance-attribute

keyboard_configuration: KeyboardConfiguration = field(default_factory=(lambda: KeyboardConfiguration()))

Options to configure how keyboard keys may be used to control the map.

Keyboard movements using the arrow keys are enabled by default.

pinch_move_thresholdclass-attributeinstance-attribute

pinch_move_threshold: Number = 40.0

Map starts to move when pinch_move_threshold has been achieved or another multi finger gesture wins which allows flet_map.MultiFingerGesture.PINCH_MOVE.

pinch_move_win_gesturesclass-attributeinstance-attribute

When pinch_move_threshold wins over rotation_threshold and pinch_zoom_threshold then pinch_move_win_gestures gestures will be used.

By default flet_map.MultiFingerGesture.PINCH_MOVE and flet_map.MultiFingerGesture.PINCH_ZOOM gestures will take effect see MultiFingerGesture for custom settings.

pinch_zoom_thresholdclass-attributeinstance-attribute

pinch_zoom_threshold: Number = 0.5

Map starts to zoom when pinch_zoom_threshold has been achieved or another multi finger gesture wins which allows flet_map.MultiFingerGesture.PINCH_ZOOM.

pinch_zoom_win_gesturesclass-attributeinstance-attribute

When pinch_zoom_threshold wins over rotation_threshold and pinch_move_threshold then pinch_zoom_win_gestures gestures will be used.

By default flet_map.MultiFingerGesture.PINCH_ZOOM and flet_map.MultiFingerGesture.PINCH_MOVE gestures will take effect see MultiFingerGesture for custom settings.

rotation_thresholdclass-attributeinstance-attribute

rotation_threshold: Number = 20.0

Map starts to rotate when rotation_threshold has been achieved or another multi finger gesture wins which allows flet_map.MultiFingerGesture.ROTATE.

rotation_win_gesturesclass-attributeinstance-attribute

rotation_win_gestures: MultiFingerGesture = MultiFingerGesture.ROTATE

When rotation_threshold wins over pinch_zoom_threshold and pinch_move_threshold then rotation_win_gestures gestures will be used.

scroll_wheel_velocityclass-attributeinstance-attribute

scroll_wheel_velocity: Number = 0.005

The used velocity how fast the map should zoom in or out by scrolling with the scroll wheel of a mouse.