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

setCamera with padding causes some issues on user location pin #29

Open
imranMnts opened this issue Feb 28, 2024 · 1 comment
Open

setCamera with padding causes some issues on user location pin #29

imranMnts opened this issue Feb 28, 2024 · 1 comment

Comments

@imranMnts
Copy link

imranMnts commented Feb 28, 2024

Steps to Trigger Behavior

  1. trigger setCamera:(MGLMapCamera *)camera duration animationTimingFunction edgePadding completionHandler

Link to Minimal Reproducible Example

Expected Behavior

Move the camera and display the user's position with some padding (bottom side of the screen)

Actual Behavior

The user's pin is displayed at the middle of the screen (so wrong position) when we trigger setCamera with padding, and come back to the real position when we move the camera ourselves (finger move)

Screenshots

User pos:
Capture d’écran 2024-02-28 à 11 46 06

After setCamera, the user's pin is in the wrong location
Capture d’écran 2024-02-28 à 11 50 45

After moving the map ourselves, the pin came to the right pos
Capture d’écran 2024-02-28 à 11 49 04

Version(s) affected

  • Platform: iOS
  • OS version: iOS 16 (it happens across different iOS versions)
  • Device type: iPhone 12
  • Emulator/ Simulator: Simulator + Physical
  • maplibre-navigation-ios Version current main
  • Mapbox- 5.13.0
@boldtrn
Copy link
Collaborator

boldtrn commented Mar 2, 2024

Is this related to the navigation repository? This sounds like an issue with the map library. Does this issue appear when you are using the provided example application? I haven't seen this issue yet.

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

No branches or pull requests

2 participants