Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class DragPanHandler

The DragPanHandler allows the user to pan the map by clicking and dragging the cursor.

Index
  • Disables the "drag to pan" interaction.

    Returns void

    map.dragPan.disable();
    
  • Enables the "drag to pan" interaction.

    Parameters

    Returns void

      map.dragPan.enable();
      map.dragPan.enable({
         linearity: 0.3,
         easing: bezier(0, 0, 0.3, 1),
         maxSpeed: 1400,
         deceleration: 2500,
      });
    
  • Returns a Boolean indicating whether the "drag to pan" interaction is active, i.e. currently being used.

    Returns boolean

    true if the "drag to pan" interaction is active.

  • Returns a Boolean indicating whether the "drag to pan" interaction is enabled.

    Returns boolean

    true if the "drag to pan" interaction is enabled.

Was this helpful?