wrap tiles

This commit is contained in:
javi 2013-08-20 17:38:52 +02:00
parent 1d07c9e9f8
commit d208ce8c3b

View File

@ -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');
});