diff --git a/src/ol/render/webgl/imagereplay/index.js b/src/ol/render/webgl/imagereplay/index.js index 22deaa3616..1d1903bed8 100644 --- a/src/ol/render/webgl/imagereplay/index.js +++ b/src/ol/render/webgl/imagereplay/index.js @@ -203,7 +203,8 @@ ol.render.webgl.ImageReplay.prototype.drawCoordinates_ = function(flatCoordinate var originX = /** @type {number} */ (this.originX_); var originY = /** @type {number} */ (this.originY_); var rotateWithView = this.rotateWithView_ ? 1.0 : 0.0; - var rotation = /** @type {number} */ (this.rotation_); + // this.rotation_ is anti-clockwise, but rotation is clockwise + var rotation = /** @type {number} */ (-this.rotation_); var scale = /** @type {number} */ (this.scale_); var width = /** @type {number} */ (this.width_); var cos = Math.cos(rotation); diff --git a/test_rendering/spec/ol/style/expected/regularshape-webgl.png b/test_rendering/spec/ol/style/expected/regularshape-webgl.png index ae51d61dc5..9219cc3085 100644 Binary files a/test_rendering/spec/ol/style/expected/regularshape-webgl.png and b/test_rendering/spec/ol/style/expected/regularshape-webgl.png differ