From c974612cc5a681a81b687afae70a6f439269592f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 6 May 2014 16:38:07 +0200 Subject: [PATCH 1/2] Use actual circle canvas size --- src/ol/style/circlestyle.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ol/style/circlestyle.js b/src/ol/style/circlestyle.js index 8504431bd6..3bc83ed12d 100644 --- a/src/ol/style/circlestyle.js +++ b/src/ol/style/circlestyle.js @@ -194,6 +194,9 @@ ol.style.Circle.prototype.render_ = function() { canvas.height = size; canvas.width = size; + // canvas.width and height are rounded to the closest integer + size = canvas.width; + var context = /** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d')); context.arc(size / 2, size / 2, this.radius_, 0, 2 * Math.PI, true); From 18d292edd7425bee26dfbf89c1f2e17bb88abe7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 6 May 2014 16:38:55 +0200 Subject: [PATCH 2/2] Make check-example.js display console logs from page --- bin/check-example.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/check-example.js b/bin/check-example.js index 7995118519..ee7b8be5bf 100644 --- a/bin/check-example.js +++ b/bin/check-example.js @@ -28,3 +28,6 @@ page.open(examplePath, function(s) { } phantom.exit(exitCode); }); +page.onConsoleMessage = function(msg) { + console.log('console:', msg); +};