Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] await update location tracking mode #429

Open
XanderD99 opened this issue May 23, 2024 · 0 comments
Open

[BUG] await update location tracking mode #429

XanderD99 opened this issue May 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@XanderD99
Copy link
Contributor

Platforms

all

Version of flutter maplibre_gl

0.19.0

Bug Description

updateUserTracking has an animation in the native versions (not sure about web). These animation can be listened to but this is not the case in the library at the moment.

Steps to Reproduce

call updateTracking mode with await.
do something with camera after that.

Expected Results

function returns after animation is finished

Actual Results

function returns instantly, and because I want to zoom in after that it stops the animation that is moving to my location

Code Sample

await _mapController?.updateMyLocationTrackingMode(
  MyLocationTrackingMode.TrackingGPS,
);

final cameraUpdate = CameraUpdate.zoomTo(16);
await _mapController?.moveCamera(cameraUpdate);
@XanderD99 XanderD99 added the bug Something isn't working label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant