-
Notifications
You must be signed in to change notification settings - Fork 1.3k
getPointAnnotationsInBounds with a rotated map #5151
Comments
Are you sure you’re passing in a suitable bounding box? When the map is rotated, a bounding box obtained by converting the four corners of the view to coordinates may circumscribe or be circumscribed by the actual viewport. (See We ran into the same issue on iOS: #4801 (comment). In fb759e8, @boundsj worked around this issue by removing the call to |
Thanks for 👀 @1ec5 , I guess I was doing the same as what iOS was doing. Will look into adding the same fix in next days. Now that it's clear it isn't a core bug, adding |
I still think it would be worthwhile at some point to go back to |
Is it possible for the SDKs to switch over to |
Yes, I’m looking into this now. All that should be required is for the |
As explained in #5165 (comment), I think we’ll have to punt on fixing |
…ueryPointAnnotations() queryPointAnnotations() accepts a screen rectangle instead of a geographic bounding box, so marker hit testing works at the edges of a rotated, tilted map view. Fixes #5151.
Closing as inittial observation was not correct and we are planning to resolve this with |
… queryPointAnnotations() queryPointAnnotations() accepts a screen rectangle instead of a geographic bounding box, so marker hit testing works at the edges of a rotated, tilted map view. Fixes #5151.
This is a follow up issue on #5051. In that issue we implemented that camera animations and projection should take MapView padding into account. While testing my changes for projection, I started to notice that
getAnnotationsInBounds
was not returning the actual annotations for the projection.After some debugging and playing around with some values. I started to notice that having
tilt = 0
anddirection = 0
returns the correct annotations in bounds, When the map is rotated we aren't receiving the correct values anymore.Example
In below gif I'm seeing the top left marker as an annotations in bounds even though it's not a part of the current projection. When I make the map face north again it becomes a part of the projection.
The text was updated successfully, but these errors were encountered: