diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2016-02-10 15:15:29 -0800 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-02-10 15:15:29 -0800 |
commit | bd59ab9a5285bf56ecc7a02e180a21f269ad68c0 (patch) | |
tree | b1c6be1c99cd940ed08955aefcb8994ae03c1c52 /README.md | |
parent | 71611ec61247593aa6e9b568595114647363532d (diff) | |
download | qtlocation-mapboxgl-bd59ab9a5285bf56ecc7a02e180a21f269ad68c0.tar.gz |
[core, ios, osx] Only constrain after adding to a window
Introduced a setter/getter for constrain mode. On iOS and OS X, the zoom level inspectable causes the zoom level to be set independently from the longitude and latitude. Thus, the latitude inspectable had no effect because the latitude was constrained to 0 at z0. Temporarily removing the heightwise constraint allows the map to center on the intended location before zooming, which is the usual case for storyboards and XIBs. On iOS, the only guarantee we have timing-wise is that all the inspectables are applied after initialization but before the view is added to a window. So we reimpose the heightwise constraint as soon as the view is added to a window, that is, before the user has a chance to pan the map out of bounds.
Fixes #3868.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions