wrap tiles
This commit is contained in:
parent
1d07c9e9f8
commit
d208ce8c3b
@ -132,7 +132,11 @@ L.TiledTorqueLayer = L.TileLayer.Canvas.extend({
|
||||
_loadTile: function(tile, tilePoint) {
|
||||
var self = this;
|
||||
L.TileLayer.Canvas.prototype._loadTile.apply(this, arguments);
|
||||
this.provider.getTileData(tilePoint, this._map.getZoom(), function(tileData) {
|
||||
|
||||
// get the data from adjusted point but render in the right canvas
|
||||
var adjusted = tilePoint.clone()
|
||||
this._adjustTilePoint(adjusted);
|
||||
this.provider.getTileData(adjusted, this._map.getZoom(), function(tileData) {
|
||||
self._tileLoaded(tile, tilePoint, tileData);
|
||||
L.DomUtil.addClass(tile, 'leaflet-tile-loaded');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user