diff --git a/src/ol/style/icon.js b/src/ol/style/icon.js index b5fc255d20..2be1658c24 100644 --- a/src/ol/style/icon.js +++ b/src/ol/style/icon.js @@ -138,7 +138,7 @@ ol.style.Icon.prototype.createLiteral = function(feature) { goog.asserts.assertNumber(opacity, 'opacity must be a number'); var rotation = - /** {@type {number} */ (this.opacity_.evaluate(feature, attrs)); + /** {@type {number} */ (this.rotation_.evaluate(feature, attrs)); goog.asserts.assertNumber(rotation, 'rotation must be a number'); return new ol.style.IconLiteral({