Do not use underscore
This commit is contained in:
parent
c0e6bf1299
commit
94a5020faf
@ -1,4 +1,3 @@
|
|||||||
const _ = require('underscore');
|
|
||||||
const dot = require('dot');
|
const dot = require('dot');
|
||||||
const QueryTables = require('cartodb-query-tables');
|
const QueryTables = require('cartodb-query-tables');
|
||||||
|
|
||||||
@ -72,14 +71,14 @@ module.exports = class MapStoreMapConfigProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
createKey (base) {
|
createKey (base) {
|
||||||
const tplValues = _.defaults({}, this.params, {
|
const tplValues = Object.assign({
|
||||||
dbname: '',
|
dbname: '',
|
||||||
token: '',
|
token: '',
|
||||||
dbuser: '',
|
dbuser: '',
|
||||||
format: '',
|
format: '',
|
||||||
layer: '',
|
layer: '',
|
||||||
scale_factor: 1
|
scale_factor: 1
|
||||||
});
|
}, this.params);
|
||||||
|
|
||||||
return (base) ? baseKeyTpl(tplValues) : rendererKeyTpl(tplValues);
|
return (base) ? baseKeyTpl(tplValues) : rendererKeyTpl(tplValues);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user