From 8dc9618adb2ffcd083db44a307c75808b73ee7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 25 Jun 2014 12:16:22 +0200 Subject: [PATCH] Add ol.style.Icon#getImageSize --- src/ol/style/iconstyle.js | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */