Windshaft-cartodb/lib/backends/layer-stats/empty-layer-stats.js
2019-10-07 09:40:50 +02:00

19 lines
378 B
JavaScript

'use strict';
function EmptyLayerStats(types) {
this._types = types || {};
}
EmptyLayerStats.prototype.is = function (type) {
return this._types[type] ? this._types[type] : false;
};
EmptyLayerStats.prototype.getStats =
function (layer, dbConnection, callback) {
setImmediate(function() {
callback(null, {});
});
};
module.exports = EmptyLayerStats;