Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use camera options to calculate zoom for overview camera #4593

Merged
merged 2 commits into from
Feb 9, 2024
Merged

Conversation

kried
Copy link
Contributor

@kried kried commented Feb 8, 2024

Description

https://mapbox.atlassian.net/browse/NAVIOS-1537

Implementation

Fixes the issue on iOS where navigation routes didn't take the whole available viewport because of incorrectly calculated zoom level.
Note: the viewport does not take the whole screen, it is calculated to take into account the padding to the control elements.
Note: the old implementation is still used for CarPlay to avoid hardcoding the size of the control elements to avoid the views overlap.

Screenshots or Gifs

Screenshots
Before After
Simulator Screenshot - iPhone 15 Pro - 2024-02-07 at 12 18 13 Simulator Screenshot - iPhone 15 Pro - 2024-02-07 at 12 14 30

@kried kried self-assigned this Feb 8, 2024
@kried kried requested a review from a team as a code owner February 8, 2024 14:52
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (61b4bba) 60.58% compared to head (0d54823) 60.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4593      +/-   ##
==========================================
+ Coverage   60.58%   60.62%   +0.03%     
==========================================
  Files         189      189              
  Lines       21249    21265      +16     
==========================================
+ Hits        12874    12892      +18     
+ Misses       8375     8373       -2     
Files Coverage Δ
...apboxNavigation/NavigationViewportDataSource.swift 92.06% <100.00%> (+0.27%) ⬆️

... and 1 file with indirect coverage changes

@kried kried merged commit bbbfac3 into main Feb 9, 2024
19 of 20 checks passed
@kried kried deleted the NAVIOS-1537 branch February 9, 2024 16:19
azarovalex added a commit that referenced this pull request Apr 15, 2024
* Use camera options to calculate zoom for overview camera (#4593)

* Use camera options to calculate zoom for overview camera

* Create dependabot.yml

Enable Dependabot version updates

* Bump actions/checkout from 3 to 4

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Bump github/codeql-action from 2 to 3

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v2...v3)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fixed the possible situation when the upcoming route leg is rendered above the active route leg (#4589)

* Add the ability to set locale for top and bottom banner views (#4595)

* Implement configurable waypoints in CarPlayDelegate

* Update Tests/MapboxNavigationTests/CarPlayUtils.swift

Co-authored-by: Nastassia Makaranka <[email protected]>

* Update CHANGELOG.md

Co-authored-by: Nastassia Makaranka <[email protected]>

* Update dependencies (#4614)

* vk/dependencies-update: bumped Directions to 2.12.0, Maps to 10.16.5. Now compatible with Turf 2.7.0.

* vk/dependencies-update: CHANGELOG updated

* vk/dependencies-update: bumped NN to v202; update cocoapods in gemfile to 1.14

* vk/dependencies-update: unit tests fix

* Sync Package.resolved with last resolved dependencies

* Update CHANGELOG.md

* Sync CocoaPodsTest

---------

Co-authored-by: Udumft <[email protected]>

* Fix SystemSpeechSynthesizer related main thread hang on NavigationViewController creation (#4617)

* Don't check if AVSpeechSynthesizer.isSpeaking when unmuting it

* add changelog entry

* Improve error handing in case of invalid route responses (#4618)

* Improve error handing in case of invalid route responses

* Fix the order in which delegate is notified about failed reroute attempt

* Fix for old Swift compiler versions

* Fixed project structure in Carthage integration

* Added changelog entry

* Fix Examples signing when building on a real device (#4619)

* Fix Examples signing when building on a real device

* Replace build phases with the new script in 3 test targets

* Grant exec permissions to the script

* Fix carplay background maneuver card

* Fix method annotation and desctiption

* Update changelog

* Fix compile errors

* Update breaking changes list

* Update changelog

* Update spelling

* Fix spelling

* Update CHANGELOG.md

* Update NN and Maps (#4628)

* Update NN and Maps

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Nastassia Makaranka <[email protected]>
Co-authored-by: Thibaud Lopez Schneider <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max <[email protected]>
Co-authored-by: Max <[email protected]>
Co-authored-by: Udumft <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants