Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

convert(CLLocationCoordinate2D toPointTo: UIView?) doesn't work correctly #638

Open
Ogerets opened this issue Oct 22, 2021 · 2 comments
Open

Comments

@Ogerets
Copy link

Ogerets commented Oct 22, 2021

When there is a non zero camera pitch, convert(:CLLocationCoordinate2D, toPointTo:UIView?) returns totally incorrect CGPoint. When pitch is zero, it's working correctly.
Also zoom level seems to have some influence on this bug. As well as location of camera relative to coordinates.

Steps to reproduce

Here is a sample project representing an issue with 100% reproduce rate

Expected behavior

Correctly converted point on view from coordinates even with non zero pitch

Actual behavior

Totally incorrectly calculated point on view

Configuration

Mapbox SDK versions: v6.4.0
iOS/macOS versions: 14.2
Device/simulator models: iPhone 6s
Xcode version: 12.5.1

@Ogerets Ogerets changed the title convert(CLLocationCoordinate2D to: UIView) doesn't work correctly with non zero camera pitch convert(CLLocationCoordinate2D toPointTo: UIView?) doesn't work correctly Oct 22, 2021
@andriibutko
Copy link

I've got the same problem.
I would appreciate any help on that.
Thank you in advance!

@IgorTheSimplifier
Copy link

Same issue here!

@stale stale bot added the archived label Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants