Enables the "drag to pan" interaction.
Optional
options: boolean | DragPanOptionsOptions object
map.dragPan.enable();
map.dragPan.enable({
linearity: 0.3,
easing: bezier(0, 0, 0.3, 1),
maxSpeed: 1400,
deceleration: 2500,
});
The
DragPanHandler
allows the user to pan the map by clicking and dragging the cursor.