flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Mapbox GL web : error when animating camera in web release mode #1264

Closed AlbaneseRemy closed 1 year ago

AlbaneseRemy commented 1 year ago

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 : image

And here's the JavaScript error I get : image

And finally, the line of the Dart file being problematic : image

stale[bot] commented 1 year ago

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.