In the project I'm working on, I needed the camera to zoom in when tapping a symbol. To do so, I used the "animateCamera" method of the MapboxMapController with a newLatLngZoom parameter.
It works as intended on Android release and debug mode, it works aswell in web debug mode, but I have a javascript error and it doesn't work anymore when running on release or profile web.
I managed to reproduce the error in the example code of the library.
Here's the modification I made in example/lib/place_symbol.dart :
And here's the JavaScript error I get :
And finally, the line of the Dart file being problematic :
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.
Hello,
In the project I'm working on, I needed the camera to zoom in when tapping a symbol. To do so, I used the "animateCamera" method of the MapboxMapController with a newLatLngZoom parameter. It works as intended on Android release and debug mode, it works aswell in web debug mode, but I have a javascript error and it doesn't work anymore when running on release or profile web.
I managed to reproduce the error in the example code of the library.
Here's the modification I made in example/lib/place_symbol.dart :
And here's the JavaScript error I get :
And finally, the line of the Dart file being problematic :