diff --git a/src/ol/map.js b/src/ol/map.js index 8f4cdbc56e..f9c2c2c1ee 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -167,7 +167,7 @@ ol.Map.prototype.getResolutionForExtent = function(extent) { * @return {goog.math.Size} Size. */ ol.Map.prototype.getSize = function() { - return this.size_; + return this.size_.clone(); };