Class MarkerDragController
[DefaultExecutionOrder(-30)]
public sealed class MarkerDragController : MonoBehaviour
- Inheritance
-
object
Object
Component
Behaviour
MonoBehaviour
MarkerDragController
Fields
AssumedTouchDpi
public const float AssumedTouchDpi = 460
Field Value
- float
LongPressSeconds
[Tooltip("Hold this long on a marker before drag starts. A quick press-drag pans the map instead.")]
public float LongPressSeconds
Field Value
- float
LongPressSlopPx
[Tooltip("Pointer travel in pixels that cancels the pending long-press.")]
public float LongPressSlopPx
Field Value
- float
Map
[Tooltip("Map whose bulk markers become draggable. Works against either ScreenMapView or SurfaceMapView.")]
public BaseMapView Map
Field Value
- BaseMapView
[Tooltip("Input to suppress while dragging. Fullscreen only; leave empty on a surface.")]
public MapInteractionController MapInput
Field Value
- MapInteractionController
PickRadiusPx
[Tooltip("Pick radius around the cursor in screen pixels at 160 dpi; scales with device dpi.")]
public float PickRadiusPx
Field Value
- float
Pointer
[NonSerialized]
public IMapPointerSurface Pointer
Field Value
- IMapPointerSurface
Properties
IsDragging
public bool IsDragging { get; }
Property Value
- bool
Methods
EffectiveDpi(float, bool)
public static float EffectiveDpi(float rawDpi, bool touchActive)
Parameters
rawDpi float
touchActive bool
Returns
- float
public void RestoreMapInput()
public void SuppressMapInput()
Events
DragEnded
public event Action<int, LatLon> DragEnded
Event Type
- Action<int, LatLon>
DragMoved
public event Action<int, LatLon> DragMoved
Event Type
- Action<int, LatLon>
DragStarted
public event Action<int> DragStarted
Event Type
- Action<int>