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 }}
Repository navigation
[Bug]: Adding LocationPuck causes onMapIdle to be called infinitely #3801
I don't think we can do much to fix this. Definition of onMapIdle is quite vague.
Invoked when the Map has entered the idle state. The Map is in the idle state when there are no ongoing transitions and the Map has rendered all available tiles.
In same cases onMapIdle is called when you don't expect it to. Other case onMapIdle is called when you don't expect it.
We should be implementing stuff like Viewport listeners (already implemented).
Camera animation listeners (TODO).
what's the recommended way to know when the map settles down after someone moves it, so we can then fetch data in the viewport? onRegionChange throws deprecation warnings
Activity
kainzhong commentedon Mar 6, 2025
Could be a dup of #2902 and mapbox/mapbox-maps-android#2116
warmfire540 commentedon Oct 18, 2025
I have this issue too, added
UserLocationandonMapIdlegoes on an infinite loop (and heats my phone lol)my code
mfazekas commentedon Oct 18, 2025
I don't think we can do much to fix this. Definition of onMapIdle is quite vague.
In same cases onMapIdle is called when you don't expect it to. Other case onMapIdle is called when you don't expect it.
We should be implementing stuff like Viewport listeners (already implemented).
Camera animation listeners (TODO).
https://docs.mapbox.com/android/maps/api/11.15.3/mapbox-maps-android/com.mapbox.maps.plugin.animation/-camera-animations-lifecycle-listener/?query=interface%20CameraAnimationsLifecycleListener
https://docs.mapbox.com/ios/maps/api/11.15.2/documentation/mapboxmaps/cameraanimationsmanager
And we should deprecate onMapIdle, and people should use more specific observers.
warmfire540 commentedon Oct 18, 2025
what's the recommended way to know when the map settles down after someone moves it, so we can then fetch data in the viewport?
onRegionChangethrows deprecation warningsmfazekas commentedon Nov 9, 2025
@warmfire540 I'm working on a map steady callback. See #4074