From 0e27f317855f00769c281d612cce514ba0ab885d Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sat, 29 Sep 2012 17:47:44 -0600 Subject: [PATCH] Avoid undefined rotation --- src/ol/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/map.js b/src/ol/map.js index 9ea1645fe9..34762a68e5 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -496,10 +496,10 @@ ol.Map.prototype.getRotatedExtent = function() { /** - * @return {number|undefined} Rotation. + * @return {number} Rotation. */ ol.Map.prototype.getRotation = function() { - return /** @type {number|undefined} */ this.get(ol.MapProperty.ROTATION); + return /** @type {number} */ this.get(ol.MapProperty.ROTATION) || 0; }; goog.exportProperty( ol.Map.prototype,