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

Pin Placement not accurate while in Exaggeration 3D #2263

Open
micaeloliveira-void opened this issue Nov 13, 2024 · 0 comments
Open

Pin Placement not accurate while in Exaggeration 3D #2263

micaeloliveira-void opened this issue Nov 13, 2024 · 0 comments
Labels
bug 🪲 Something is broken!

Comments

@micaeloliveira-void
Copy link

Environment

  • Xcode version: Version 15.4 (15F31d)
  • iOS version: We support >= iOS 14.0 and Tested on >= iOS 16.7.10
  • Devices affected: iPhones
  • Maps SDK Version: MapBox Maps and CoreMaps -> 11.6.1, MapBox Common -> 24.6.1, MapBox Geocoder -> 0.15.0

This is also happening on Android Devices:

  • Android Studio LadyBug 2024.2.1
  • Android Gradle Plugin: 8.5.0, Kotlin Version: 1.9.25, Gradle Version: 8.7
  • Compile SDK: 34, MinSDKVersion: 24
  • Maps SDK Version: MapBox Version -> 11.6.1, MapBox Turf Version -> 6.15.0

Observed behavior and steps to reproduce

Moving to a mountainous terrain like “47.675029, -120.971942” or even "37.392843, -118.789926"
Turning on 3D mode
Turning up the exaggeration
Getting the Coordinates from the top of the mountain gives coordinates behind the mountain

Expected behavior

The coordinates should be related to the mountain itself and not a position behind the mountain.

Notes / preliminary analysis

When the mountain is not focused by MapBox, the coordinates will retrieve values "behind" the mountain. It seems if mountain is focused, the coordinates will have the proper value relatively to the mountain. It seems to be difficult to get the proper coordinates because approaching and moving to the mountain leads the mountain to stay "unfocused".
If we use 2D we have the proper coordinates.

We are using the following to get the coordinates:
MapView.mapboxMap.coordinate(for: self.view.center)

Additional links and references

@micaeloliveira-void micaeloliveira-void added the bug 🪲 Something is broken! label Nov 13, 2024
quido3 pushed a commit to SharperShape/mapbox-maps-ios that referenced this issue Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something is broken!
Projects
None yet
Development

No branches or pull requests

1 participant