2018-10-23 23:45:42 +08:00
|
|
|
'use strict';
|
|
|
|
|
2019-10-22 01:07:24 +08:00
|
|
|
function EmptyLayerStats (types) {
|
2017-05-18 02:16:43 +08:00
|
|
|
this._types = types || {};
|
|
|
|
}
|
|
|
|
|
|
|
|
EmptyLayerStats.prototype.is = function (type) {
|
|
|
|
return this._types[type] ? this._types[type] : false;
|
|
|
|
};
|
|
|
|
|
|
|
|
EmptyLayerStats.prototype.getStats =
|
|
|
|
function (layer, dbConnection, callback) {
|
2019-10-22 01:07:24 +08:00
|
|
|
setImmediate(function () {
|
2017-05-18 02:16:43 +08:00
|
|
|
callback(null, {});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = EmptyLayerStats;
|