Skip to content

Map.Drag

Handler.MapDrag is used to make the map draggable (with panning inertia), enabled by default.

Interaction Options

OptionTypeDefaultDescription
draggingBooleantrueWhether the map is draggable with pointer or not.

Panning Inertia Options

OptionTypeDefaultDescription
inertiaBoolean*If enabled, panning of the map will have an inertia effect where
inertiaDecelerationNumber3000The rate with which the inertial movement slows down, in pixels/second².
inertiaMaxSpeedNumberInfinityMax speed of the inertial movement, in pixels/second.
easeLinearityNumber0.2easeLinearity: 0.2,
worldCopyJumpBooleanfalseWith this option enabled, the map tracks when you pan to another "copy"
maxBoundsViscosityNumber0.0If maxBounds is set, this option will control how solid the bounds