diff --git a/src/ol/map.js b/src/ol/map.js index 0202d0d2af..a5ebaae2aa 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -289,6 +289,7 @@ ol.Map = function(mapOptions) { this.handleSizeChanged_, false, this); this.setValues(mapOptionsInternal.values); + // this gives the map an initial size this.handleBrowserWindowResize(); this.controls_.forEach(