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);