mapbox/mapbox-gl-native-ios

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

Opened this issue · 2 comments

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

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

Same issue here!