2018-10-23 23:45:42 +08:00
|
|
|
'use strict';
|
|
|
|
|
2017-05-18 02:16:43 +08:00
|
|
|
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) {
|
2017-05-18 17:51:12 +08:00
|
|
|
setImmediate(function() {
|
2017-05-18 02:16:43 +08:00
|
|
|
callback(null, {});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = EmptyLayerStats;
|