File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2711,6 +2711,7 @@ export type MapOptionsType = {
2711
2711
layers ?: Array < Layer > ;
2712
2712
draggable ?: boolean ;
2713
2713
dragPan ?: boolean ;
2714
+ dragPanEasing ?: EasingType ;
2714
2715
dragRotate ?: boolean ;
2715
2716
dragPitch ?: boolean ;
2716
2717
dragRotatePitch ?: boolean ;
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ class MapDragHandler extends Handler {
190
190
const dscale = isTouch ? 5 : 2.8 ;
191
191
const targetPrjCoord = currentCenter . add ( dxy . _multi ( dscale ) ) ;
192
192
// map._fixPrjOnWorldWide(targetPrjCoord);
193
- map . _panTo ( targetPrjCoord , { 'duration' : isTouch ? t * 3 : t * 2 , 'easing' : 'outExpo' } ) ;
193
+ map . _panTo ( targetPrjCoord , { 'duration' : isTouch ? t * 3 : t * 2 , 'easing' : map . options . dragPanEasing || 'outExpo' } ) ;
194
194
} else {
195
195
map . onMoveEnd ( param ) ;
196
196
}
You can’t perform that action at this time.
0 commit comments