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

ViewAnnotation disappearing mid-screen when panning up the map. #2057

Closed
thib4ult opened this issue Nov 17, 2023 · 5 comments
Closed

ViewAnnotation disappearing mid-screen when panning up the map. #2057

thib4ult opened this issue Nov 17, 2023 · 5 comments
Labels
bug 🪲 Something is broken!

Comments

@thib4ult
Copy link

Environment

  • Xcode version: 15.0.1
  • iOS version: All
  • Devices affected: All
  • Maps SDK Version: V11.0 and 10.16

Observed behavior and steps to reproduce

The view annotation is disappearing about mid-screen when scrolling up on the map IF the map has a high pitch (about 50 in my case) AND IF the zoom is high (about 10 in my case)

I uploaded a video from your test app that has the issue also.

RPReplay_Final1700236192.MP4

Expected behavior

The annotations should disappear only when they go off screen.

Notes / preliminary analysis

Lower the pitch value is, the more you can scroll up until the annotation disappear.

@thib4ult thib4ult added the bug 🪲 Something is broken! label Nov 17, 2023
@persidskiy
Copy link
Contributor

persidskiy commented Nov 20, 2023

@thib4ult Thanks you for the feedback!

We aware of some placement issues with pitched camera. It should be fixed in the upcoming v11.0.0-rc.2 version. Can you try to use the Maps version from the main branch? Will it be better for your use-case?

tip: you can turn on debug options to see bounds of the elements on the map and see if they collide. Note: when view annotation goes beyond camera padding, it hides.

mapView.debugOptions = [.camera, .padding, .collision]

@thib4ult
Copy link
Author

@persidskiy Thank you for your comment and thanks for releasing v11.0.0-rc.2. Everything works well with that new release.

Thanks again.

@baleboy
Copy link

baleboy commented Nov 27, 2023

Thanks for the follow-up!

@baleboy baleboy closed this as completed Nov 27, 2023
@MichaelDanielTom
Copy link

MichaelDanielTom commented Nov 29, 2023

Still experiencing this, and while it does seem to appear more with pitched camera, it still seems to happen without a pitch in v11.0.0-rc.2 when panning and zooming with certain annotations.

Related vid that's still happening for me in v11.0.0-rc.2 (although vid was on v11.0.0-rc.2).

Update: I think it might have something to do with using the 2d user location puck, as when I have that enabled, annotations around it behave oddly. Note this does not happen if there is no location puck, or if a 3d location puck is used.

@MichaelDanielTom
Copy link

It would appear that setting allowOverlapWithPuck to true fixes my issue!

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

4 participants