public final class PanOptions extends Object
Constructor and Description |
---|
PanOptions() |
Modifier and Type | Method and Description |
---|---|
PanOptions |
setAnimate(boolean animate)
If
true , panning will always be animated if possible. |
PanOptions |
setDuration(double duration)
Duration of animated panning.
|
PanOptions |
setEaseLinearity(double easeLinearity)
The curvature factor of panning animation easing (third parameter of the
Cubic Bezier curve). 1.0 means linear animation, the less the more bowed
the curve.
|
PanOptions |
setNoMoveStart(boolean noMoveStart)
If
true , panning won't fire movestart event on start (used
internally for panning inertia). |
public PanOptions setAnimate(boolean animate)
true
, panning will always be animated if possible. If
false
, it will not animate panning, either resetting the map
view if panning more than a screen away, or just setting a new offset for
the map pane (except for `panBy` which always does the latter).animate
- The animate optionsPanOptions
object with the set options.public PanOptions setDuration(double duration)
duration
- The durationPanOptions
object with the set options.public PanOptions setEaseLinearity(double easeLinearity)
easeLinearity
- The ease linearityPanOptions
object with the set options.public PanOptions setNoMoveStart(boolean noMoveStart)
true
, panning won't fire movestart event on start (used
internally for panning inertia).noMoveStart
- The no move start optionPanOptions
object with the set options.Copyright © 2017. All rights reserved.