Use goog.style.getSize to compute the map size.

This allows to initialize hidden map (display: none).
Otherwise the size is 0 (clientWidth == clientHeight == 0)