You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
coordinate conversion incorrect during animated zooms #1160
Discovered in #1125, when the map is zooming animated (like say after a double-tap zoom in), the geo-to-viewport conversions are vastly out of range, leading to a disappearing user dot until the animation is complete.
You can confirm this with the following patch against 3ed1e7a:
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index 49cfdd3..824e826 100644
--- a/platform/ios/MGLMapView.mm+++ b/platform/ios/MGLMapView.mm@@ -2117,6 +2117,8 @@ CLLocationCoordinate2D latLngToCoordinate(mbgl::LatLng latLng)
}
else
{
+ NSLog(@"hiding user dot since out of viewport: %@", [NSValue valueWithCGPoint:userPoint]);+
self.userLocationAnnotationView.layer.hidden = YES;
}
}
First, showing normal out-of-viewport hiding, then showing during animation:
This appears to be down in the projection.hpp C++ level.
Activity
incanus commentedon Apr 2, 2015
@jfirebaugh This could use some 👀 if you've any bandwidth.
jfirebaugh commentedon Apr 3, 2015
Is it possible this was caused by the same issue as #1181?
incanus commentedon Apr 3, 2015
I tested this morning after merge just to be sure, and no.
jfirebaugh commentedon Apr 29, 2015
@ansis, could you take a look at this?
fix pixelForLatLng during animated zoom
incanus commentedon May 1, 2015
AGHGHGGH SO GOOD