mobile
mobile copied to clipboard
Map extent stored in app settings following no map movement
Map extent is now stored in app settings after 2 seconds of map movement inactivity (no extentChanged). Each time the extent changes, a timer is reset, and if no further changes occur within 2 seconds, current extent is saved. When opening the app, if no extent can be retrieved from the map canvas XML, the app falls back to using last stored extent.
Fixes #2445 Relates to #2644
Pull Request Test Coverage Report for Build 14924598021
Details
- 0 of 0 changed or added relevant lines in 0 files are covered.
- 178 unchanged lines in 8 files lost coverage.
- Overall coverage decreased (-0.1%) to 60.061%
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| input/app/main.cpp | 2 | 33.24% |
| input/app/notificationmodel.cpp | 3 | 49.44% |
| input/core/merginuserauth.cpp | 9 | 71.6% |
| input/core/merginapi.cpp | 13 | 78.82% |
| input/core/localprojectsmanager.cpp | 17 | 75.78% |
| input/core/coreutils.cpp | 19 | 86.08% |
| input/app/map/inputmapsettings.cpp | 57 | 42.99% |
| input/app/activeproject.cpp | 58 | 71.43% |
| <!-- | Total: | 178 |
| Totals | |
|---|---|
| Change from base Build 14772408437: | -0.1% |
| Covered Lines: | 8110 |
| Relevant Lines: | 13503 |
💛 - Coveralls
Also all the builds are failing so we need to fix that before proceeding
Let's keep this as a prototype/reference, we will revisit the decision to add this in the future