diff --git a/lib/torque/renderer/point.js b/lib/torque/renderer/point.js index 04b3d1a..3d5de2e 100644 --- a/lib/torque/renderer/point.js +++ b/lib/torque/renderer/point.js @@ -64,7 +64,7 @@ var carto = global.carto || require('carto'); // generateSprite: function(shader, value, shaderVars) { var prof = Profiler.metric('torque.renderer.point.generateSprite').start(); - var st = shader.getStyle('canvas-2d', { + var st = shader.getStyle({ value: value }, shaderVars); diff --git a/test/renderer/point.js b/test/renderer/point.js index 6dadb7e..6bb05a8 100644 --- a/test/renderer/point.js +++ b/test/renderer/point.js @@ -44,10 +44,10 @@ test('render conditional point layers', function() { renderer.setCartoCSS(css) var layer = renderer._shader.getLayers()[0]; - var st = layer.getStyle('canvas-2d', {}, { zoom: 10, 'frame-offset': 0 }); - equal(st['point-radius'], 10); - st = layer.getStyle('canvas-2d', {}, { zoom: 18, 'frame-offset': 0 }); - equal(st['point-radius'], 20); + var st = layer.getStyle({}, { zoom: 10, 'frame-offset': 0 }); + equal(st['marker-width'], 10); + st = layer.getStyle({}, { zoom: 18, 'frame-offset': 0 }); + equal(st['marker-width'], 20); }); test('should generate sprite when maker-fill > 0', function() {