adds explanation comment

This commit is contained in:
Francisco Dans 2016-07-06 20:54:47 +02:00
parent bfc2489b5c
commit d1ab5620c6

View File

@ -35,6 +35,7 @@ L.TorqueLayer = L.CanvasLayer.extend({
});
this.prevRenderedKey = 0;
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];
torque.extend(options, torque.common.TorqueLayer.optionsFromCartoCSS(headerCartoCSS));
}