Fixed map.bounds error by calling map.invalidateState() after rendering view, once map container size has been defined.
Merge pull request #1 from samhiatt/fix_bounds

Fixed map.bounds error by calling map.invalidateSize() after rendering ...