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

Fixed map.bounds error by calling map.invalidateState() after rendering view, once map container size has been defined.
Map width was never set which was preventing all but the leftmost column of layer tiles from loading. This forces map resize after view has rendered.