[Bug]: Adding LocationPuck
causes onMapIdle
to be called infinitely
#3801
Labels
bug 🪲
Something isn't working
LocationPuck
causes onMapIdle
to be called infinitely
#3801
Mapbox Implementation
Mapbox
Mapbox Version
default
React Native Version
0.76.6
Platform
iOS
@rnmapbox/maps
version#main
Standalone component to reproduce
Observed behavior and steps to reproduce
The reproduction component above is just something I wrote to make the bot open this issue and I have no idea if that works.
You can reproduce this issue by just using the example project in this repo which is a lot easier.
In
src/examples/Map/ShowRegionDidChange.js
Add this method:
and in
render()
method, add<LocationPuck />
in that<MapView>
component.Follow the reproduce instructions above.
Run the example project, and go to "Show Region Did Change". When the map settles, you'll see
which never stops.
Also if you add this instead:
you'll see
onMapIdle
is never called.Expected behavior
I would expect
onMapIdle
to be only called once when the map is not moving?Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: