style
This commit is contained in:
parent
8d8dbb29b4
commit
dac3246fcd
@ -100,8 +100,8 @@ L.TorqueLayer = L.CanvasLayer.extend({
|
||||
});
|
||||
}, this);
|
||||
|
||||
|
||||
},
|
||||
|
||||
_adjustTilePoint: function (tilePoint) {
|
||||
|
||||
var limit = this._getWrapTileNum();
|
||||
@ -115,11 +115,13 @@ L.TorqueLayer = L.CanvasLayer.extend({
|
||||
tilePoint.y = limit.y - tilePoint.y - 1;
|
||||
}
|
||||
},
|
||||
|
||||
_getWrapTileNum: function () {
|
||||
var crs = this._map.options.crs,
|
||||
size = crs.getSize(this._map.getZoom());
|
||||
return size.divideBy(this._getTileSize())._floor();
|
||||
},
|
||||
|
||||
_getTileSize: function () {
|
||||
var map = this._map,
|
||||
zoom = map.getZoom() + this.options.zoomOffset,
|
||||
|
Loading…
Reference in New Issue
Block a user