This commit is contained in:
Francisco Dans 2015-01-12 16:53:01 +01:00
parent 8d8dbb29b4
commit dac3246fcd

View File

@ -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,