diff --git a/src/ol/style/iconstyle.js b/src/ol/style/iconstyle.js index 763679da7b..b5693ca254 100644 --- a/src/ol/style/iconstyle.js +++ b/src/ol/style/iconstyle.js @@ -232,6 +232,15 @@ ol.style.Icon.prototype.getImage = function(pixelRatio) { }; +/** + * Real Image size used. + * @return {ol.Size} Size. + */ +ol.style.Icon.prototype.getImageSize = function() { + return this.iconImage_.getSize(); +}; + + /** * @inheritDoc */