Maps: Camera if followUserLocation is set to true, incredibly slow to take effect

Created on 12 Dec 2019  路  3Comments  路  Source: react-native-mapbox-gl/maps

When I click on the orient button on my map, followUserLocation is set to true. It then takes around 12 seconds to orient to the location on the map. About 6 of those seconds, nothing is happening, like it's waiting for something.

To reproduce, maybe create a button on a map which takes you to the user location.

I expect it to be very fast - my animationDuration is 400 ms, so I expect it to be that fast.

Can't capture this, because it seems to only affect my phone. Moto x4

It seems like a fix is to manually set the camera:
this.cameraRef.setCamera({
centerCoordinate: this.state.location,
zoomLevel: 16,
heading: 0,
animationDuration: 400,
})

But this could have other side effects.. Thanks!

Author Feedback Issue Template Repro

Most helpful comment

Listen stale bot, don't think you can just come in here and close issues like that actually solves the problems - it's only been like 2 months! Thank you.

All 3 comments

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Listen stale bot, don't think you can just come in here and close issues like that actually solves the problems - it's only been like 2 months! Thank you.

:wave: @SethArchambault, please respect our issue template - required fields are missing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loic-lopez picture loic-lopez  路  6Comments

gmaclennan picture gmaclennan  路  3Comments

magnusburton picture magnusburton  路  3Comments

alexisrougnant picture alexisrougnant  路  3Comments

mustafaskyer picture mustafaskyer  路  3Comments