From 5c52401d5504ab4b84d1510042c6b97504c50933 Mon Sep 17 00:00:00 2001 From: Asheem Mamoowala Date: Tue, 2 May 2017 09:54:06 -0700 Subject: [core] Make Map.addImage tests pass (#8843) Fix Node tests suite implementation to parse pixelRatio from style json Premultiply images in the node binding before sending to mbgl core --- platform/node/test/suite_implementation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/node/test/suite_implementation.js') diff --git a/platform/node/test/suite_implementation.js b/platform/node/test/suite_implementation.js index a5e96f7265..8ac372b7c3 100644 --- a/platform/node/test/suite_implementation.js +++ b/platform/node/test/suite_implementation.js @@ -76,7 +76,7 @@ module.exports = function (style, options, callback) { map.addImage(operation[1], img.data, { height: img.height, width: img.width, - pixelRatio: 1 + pixelRatio: operation[3] || 1 }); applyOperations(operations.slice(1), callback); -- cgit v1.2.1