diff --git a/lib/torque/gmaps/gmaps_tileloader_mixin.js b/lib/torque/gmaps/gmaps_tileloader_mixin.js index 0fe7d61..4f893eb 100644 --- a/lib/torque/gmaps/gmaps_tileloader_mixin.js +++ b/lib/torque/gmaps/gmaps_tileloader_mixin.js @@ -31,6 +31,11 @@ GMapsTileLoader.prototype = { } }, + _reloadTiles: function() { + this._removeTiles(); + this._updateTiles(); + }, + _updateTiles: function () { if (!this._map) { return; } diff --git a/lib/torque/leaflet/leaflet_tileloader_mixin.js b/lib/torque/leaflet/leaflet_tileloader_mixin.js index c0d9100..6ca6f44 100644 --- a/lib/torque/leaflet/leaflet_tileloader_mixin.js +++ b/lib/torque/leaflet/leaflet_tileloader_mixin.js @@ -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();