Closed AlbaneseRemy closed 1 year ago
The problem was that in web version, you can't ever put myLocationTrackingMode to MyLocationTrackingMode.None , It always has to be pute to 'MyLocationTrackingMode.Tracking'
Is there any way to trigger the focus action with the controller instead of the forced mapbox object? I can only get it to render my location on the web after hitting the focus button from Mapbox, and I can't get our custom widget to trigger it. We used to do this by updating the tracking mode by that doesn't seem to be working.
Hi,
When compiling the Flutter app for web, the focus button used to center the CameraPosition on the user's location isn't working as intended. It only happens on Web: iOS and Android compilation is working perfectly fine.
Behaviour :
The first time you click on the button, it centers the camera on the user. If you move the camera, the user's location disappear, and you can't click on the button again.
Desired behaviour :
When you click on the button, the camera focus goes to the user's location and follow him. If you move the camera, you lose the focus, but you can click on the button again to refocus.
I isolated the problem in an empty project, here's the repo for it:
https://github.com/AlbaneseRemy/mapbox_isolate_focus
Also, I tried on the html and js version, and it is working as intended.