Add concept of data decorator function

This commit is contained in:
Petr Sloup
2017-07-28 09:53:32 +02:00
parent 427a0f0687
commit 42f24c2c99
3 changed files with 28 additions and 1 deletions
+6
View File
@@ -89,6 +89,12 @@ function start(opts) {
checkPath('sprites');
checkPath('mbtiles');
if (options.dataDecorator) {
try {
options.dataDecoratorFunc = require(path.resolve(paths.root, options.dataDecorator));
} catch (e) {}
}
var data = clone(config.data || {});
if (opts.cors) {