VmapGestureOptions class
Which gestures move the map, by MapLibre GL JS's handler names, and the two kinds of movement any of them may make, as flutter_map's flags have them: a turn needs rotate and the handler, a tilt needs pitch and the handler.
Taps and long presses are reported whatever is switched off, so a map with VmapGestureOptions.none still answers them.
- Annotations
Constructors
- VmapGestureOptions({bool dragPan = true, bool scrollZoom = true, bool boxZoom = true, bool dragRotate = true, bool pitchWithRotate = true, bool keyboard = true, bool doubleClickZoom = true, bool touchZoomRotate = true, bool touchPitch = true, bool rotate = true, bool pitch = true, bool inertia = true, double zoomRate = 1 / 100, double wheelZoomRate = 1 / 450, double rotateThreshold = 0.26 * 180 / math.pi})
-
const
Properties
- any → bool
-
Whether any gesture moves the map.
no setter
- boxZoom → bool
-
A shift drag zooms to the box it draws.
final
- doubleClickZoom → bool
-
A double tap or click zooms in, a shift double click and a two finger
tap zoom out.
final
- dragPan → bool
-
One finger or the mouse dragging, and the middle of two fingers
moving while they pinch.
final
- dragRotate → bool
-
A right drag, or a control drag, turns the map, and tilts it when
pitchWithRotate.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- inertia → bool
-
Released gestures keep their speed and slow down, rather than stop.
final
- keyboard → bool
-
Once the map has focus the arrow keys pan,
+and-zoom, and shift with the arrows turns and tilts.final - pitch → bool
-
Whether any gesture may tilt the map.
final
- pitchWithRotate → bool
-
final
- rotate → bool
-
Whether any gesture may turn the map.
final
- rotateThreshold → double
-
Degrees two fingers twist before they turn the map, so a pinch does
not turn it by accident.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollZoom → bool
-
The mouse wheel, and two fingers sliding or pinching on a trackpad,
as MapLibre GL JS's scroll zoom takes them.
final
- touchPitch → bool
-
Two fingers side by side dragged up or down tilt the map.
final
- touchZoomRotate → bool
-
Two fingers pinch to zoom and twist to turn, on a screen or a
trackpad, and a double tap held and dragged zooms.
final
- wheelZoomRate → double
-
How fast the mouse wheel zooms, MapLibre GL JS's
setWheelZoomRate.final - zoomRate → double
-
How fast a trackpad zooms, MapLibre GL JS's
setZoomRate.final
Methods
-
copyWith(
{bool? dragPan, bool? scrollZoom, bool? boxZoom, bool? dragRotate, bool? pitchWithRotate, bool? keyboard, bool? doubleClickZoom, bool? touchZoomRotate, bool? touchPitch, bool? rotate, bool? pitch, bool? inertia, double? zoomRate, double? wheelZoomRate, double? rotateThreshold}) → VmapGestureOptions -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- none → const VmapGestureOptions
- Nothing moves the map but code; taps are still reported.