-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Feature querying ignores antimeridian (was: MGLAnnotationView flickers if annotations are around the antimeridian) #10479
Comments
@ericdeveloper, I would imagine that’s a separate issue, since it occurs even in the absence of annotations. |
I believe the root cause of the original issue above is that, in mbgl, the assumption is that a bbox straddling the antimeridian would have one side beyond ±180° longitude. But mapbox-gl-native/src/mbgl/renderer/renderer.cpp Lines 45 to 54 in 9ed3aea
mapbox-gl-native/src/mbgl/renderer/tile_pyramid.cpp Lines 217 to 229 in 9ed3aea
The reason this only affects annotation views is that non-view-backed annotations (MGLAnnotationImage) and symbol layers don’t rely on feature querying to determine whether to show a given marker. But if you were to use feature querying on a symbol layer, for example to implement interactivity, you’d run into the same problem of symbols becoming non-interactive near the antimeridian. /ref #4664 #9731 mapbox/mapbox-gl-js#2321 |
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
Platform: iOS
Mapbox SDK version: 3.6.4, 3.7.0-rc.1
When placing
MGLAnnotationView
s on a map that closely straddle both sides of the antimeridian, the annotations flicker when zooming/panning.MGLAnnotationView
s are replaced withMGLAnnotationImage
.MGLAnnotationView
s reside on one side of the antimeridian.Steps to trigger behavior
Coordinates used for annotations:
Zoom/pan map
Observe flickering
Expected behavior
MGLAnnotationView
should not flicker when zooming and panning on the map.Actual behavior
MGLAnnotationView
flickers when zooming and panning on the map.The text was updated successfully, but these errors were encountered: