Skip to content

Commit 3450431

Browse files
committed
fix comment and fix pan animation
1 parent 755d2f0 commit 3450431

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/map/handler/Map.Drag.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ class MapDragHandler extends Handler {
139139
t = 5 * t;
140140
const dscale = isTouch ? 5 : 2.8;
141141
const targetPrjCoord = currentCenter.add(dxy._multi(dscale));
142-
map._fixPrjOnWorldWide(targetPrjCoord);
143-
const targetCoord = map.getProjection().unproject(targetPrjCoord);
144-
map.panTo(targetCoord, { 'duration': isTouch ? t * 3 : t * 2, 'easing': 'outExpo' });
142+
// map._fixPrjOnWorldWide(targetPrjCoord);
143+
map._panTo(targetPrjCoord, { 'duration': isTouch ? t * 3 : t * 2, 'easing': 'outExpo' });
145144
} else {
146145
map.onMoveEnd(param);
147146
}

src/ui/UIMarker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import UIComponent from './UIComponent';
1010

1111
/**
1212
* @property {Object} options - construct options
13+
* @property {String} [options.containerClass=null] - css class name applied to UIMarker's DOM container
1314
* @property {Boolean} [options.draggable=false] - if the marker can be dragged.
1415
* @property {Number} [options.single=false] - if the marker is a global single one.
1516
* @property {String|HTMLElement} options.content - content of the marker, can be a string type HTML code or a HTMLElement.

0 commit comments

Comments
 (0)