Reference options from a valid object
This commit is contained in:
parent
11ffba0a8e
commit
7e02aac641
@ -279,7 +279,7 @@ CartoCSS.prototype = {
|
||||
|
||||
carto.RendererJS = function (options) {
|
||||
this.options = options || {};
|
||||
var reference = options.reference || require('./torque-reference').version.latest;
|
||||
var reference = this.options.reference || require('./torque-reference').version.latest;
|
||||
tree.Reference.setData(reference);
|
||||
this.options.mapnik_version = this.options.mapnik_version || 'latest';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user