adds explanation comment
This commit is contained in:
parent
bfc2489b5c
commit
d1ab5620c6
@ -35,6 +35,7 @@ L.TorqueLayer = L.CanvasLayer.extend({
|
|||||||
});
|
});
|
||||||
this.prevRenderedKey = 0;
|
this.prevRenderedKey = 0;
|
||||||
if (options.cartocss) {
|
if (options.cartocss) {
|
||||||
|
// We're only passing the Map header to the global options because the parser won't like turbocarto expressions
|
||||||
var headerCartoCSS = options.cartocss.replace(/\n/g,'').match(/Map\s*?\{.*?}/g)[0];
|
var headerCartoCSS = options.cartocss.replace(/\n/g,'').match(/Map\s*?\{.*?}/g)[0];
|
||||||
torque.extend(options, torque.common.TorqueLayer.optionsFromCartoCSS(headerCartoCSS));
|
torque.extend(options, torque.common.TorqueLayer.optionsFromCartoCSS(headerCartoCSS));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user