Ticket #2105 (closed feature: fixed)
updateSize should not call setCenter if map has no center
| Reported by: | elemoine | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.9 Release |
| Component: | general | Version: | SVN |
| Keywords: | Cc: | ||
| State: | Complete |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

