Ticket #2105 (closed feature: fixed)
updateSize should not call setCenter if map has no center
|Reported by:||elemoine||Owned by:|
Currently if updateSize is called while the map has no center (map.moveTo has never been called), the map is zoomed to its max extent. So if one wants this sequence:
- create map without a div
- render map to a specific div
- zoom to a specific extent
map.moveTo will actually be called twice, once in map.updateSize, itself called from within map.render, and once in map.zoomToExtent.