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.
Assuming bounds is equivalent to self.visibleCoordinateBounds at this point, what you’re seeing is one symptom of #5983 that either #6060 or #7125 aims to address. You can work around the issue by avoiding the call to -setVisibleCoordinateBounds:animated: if MGLCoordinateBoundsEqualToCoordinateBounds(bounds, self.visibleCoordinateBounds) (although you may need to write out the comparison due to floating-point precision issues).
@1ec5 The workaround suggested by you will not work as the newly set bounds are simply not "updated" immediately and on the next delegate call I still get the old ones.
This issue was originally filed due to difficulty constraining gestures to an offline region. As of #5584, you can implement the -[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:] to achieve this effect. Here’s an example of the delegate method in action.
Activity
1ec5 commentedon Nov 20, 2016
Assuming
boundsis equivalent toself.visibleCoordinateBoundsat this point, what you’re seeing is one symptom of #5983 that either #6060 or #7125 aims to address. You can work around the issue by avoiding the call to-setVisibleCoordinateBounds:animated:ifMGLCoordinateBoundsEqualToCoordinateBounds(bounds, self.visibleCoordinateBounds)(although you may need to write out the comparison due to floating-point precision issues).andrewstay commentedon Nov 28, 2016
@1ec5 The workaround suggested by you will not work as the newly set bounds are simply not "updated" immediately and on the next delegate call I still get the old ones.
Generates the following output after first call:
After second call:
lilykaiser commentedon Nov 17, 2017
Closing due to ticket age. If this is still a problem, please re-open
1ec5 commentedon Nov 18, 2017
This issue was originally filed due to difficulty constraining gestures to an offline region. As of #5584, you can implement the
-[MGLMapViewDelegate mapView:shouldChangeFromCamera:toCamera:]to achieve this effect. Here’s an example of the delegate method in action.