Skip to content

Commit a447ccd

Browse files
committed
【fix】优化mapboxgl map在zoom 0 1 时的移动范围 review by xiongjj
1 parent 64d3f2c commit a447ccd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/mapboxgl/core/MapExtend.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ export var MapExtend = function () {
8181
};
8282
mapboxgl.Map.prototype.updateTransform = function (units, originX, originY, centerX, centerY, width, height) {
8383
this.transform.units = units;
84-
this.transform.latRange = [this._tileExtent[1], this._tileExtent[3]];
85-
this.transform.lngRange = [this._tileExtent[0], this._tileExtent[2]];
8684
var mercatorZfromAltitude = this.mercatorZfromAltitude;
8785
mapboxgl.MercatorCoordinate.fromLngLat = function (lngLatLike, altitude) {
8886
altitude = altitude || 0;

0 commit comments

Comments
 (0)