maplibre-native icon indicating copy to clipboard operation
maplibre-native copied to clipboard

`mapViewDidFinishRenderingFrameFullyRendered` not called in `MLNMapView` for iOS since 6.x.x update

Open mindthefish opened this issue 10 months ago • 0 comments

Description When interacting with the map using gestures like panning or flinging, the mapViewDidFinishRenderingFrameFullyRendered should be called in MLNMapView in order to adapt to the updated view. The NavigationMapView of maplibre-navigation-ios inherits from MLNMapView and overrides the function to update the puck position for certain cases. Since the 6.0.0 update, the function is not called, which causes massive problems with the behavior of the puck movement during active navigation.

To Reproduce

  1. Run any iOS application with a MLNMapView
  2. Add a breakpoint to the mapViewDidFinishRenderingFrameFullyRendered
  3. pan or fling the map

Expected behavior mapViewDidFinishRenderingFrameFullyRendered is called with each update caused by the gesture.

Actual behavior mapViewDidFinishRenderingFrameFullyRendered is not called.

Screenrecording

https://github.com/maplibre/maplibre-native/assets/895046/dd59b70e-9475-4ec4-8273-4be5b8e8b913

Platform information :

  • OS: iOS 16.7.4 onwards
  • Device: Simulator and physical

Additional context The related issue for maplibre-navigation-ios: https://github.com/maplibre/maplibre-navigation-ios/issues/27

mindthefish avatar Apr 03 '24 13:04 mindthefish