From d1ab5620c694786e4475737cb2bd2a4c79b9e8ff Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Wed, 6 Jul 2016 20:54:47 +0200 Subject: [PATCH] adds explanation comment --- lib/torque/leaflet/torque.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/torque/leaflet/torque.js b/lib/torque/leaflet/torque.js index ec0e10a..ea936f6 100644 --- a/lib/torque/leaflet/torque.js +++ b/lib/torque/leaflet/torque.js @@ -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)); }