flutter-mapbox-gl / maps

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

Fix release mode web map animation #1318

Closed slawekkrol closed 1 year ago

slawekkrol commented 1 year ago

This is caused by minify on flutter release mode, app can't access property by name because is changed. Issue is described here: https://github.com/flutter-mapbox-gl/maps/issues/1264

This PR fixes this issue

felix-ht commented 1 year ago

This works in release and debug mode?

slawekkrol commented 1 year ago

This works in release and debug mode?

Of course, I tested it and using currently on prod and debug versions on app I'm creating. Problem was probably on js minification of property names, that's why this code worked on debug and not worked on release mode. I additionally removed 'around' property because after deeper check it was just not used.

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.