added reload tile to tile loaders

This commit is contained in:
javi 2013-10-10 18:16:13 +02:00
parent 71ef5cee95
commit 2655094cdc
2 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,11 @@ GMapsTileLoader.prototype = {
}
},
_reloadTiles: function() {
this._removeTiles();
this._updateTiles();
},
_updateTiles: function () {
if (!this._map) { return; }

View File

@ -50,6 +50,11 @@ L.Mixin.TileLoader = {
}
},
_reloadTiles: function() {
this._removeTiles();
this._updateTiles();
},
_removeOtherTiles: function (bounds) {
var kArr, x, y, z, key;
var zoom = this._map.getZoom();