You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that mapbox_gl is able to compile to 3.27.0 (🎉🎉🎉), a new issue has cropped up with animateCamera:
UncaughtError:Null check operator used on a null value
at mapbox_web_gl_platform.dart:209:18
at _wrapJsFunctionForAsync_closure.$protected (async_patch.dart:311:19)
at _wrapJsFunctionForAsync_closure.call$2 (async_patch.dart:336:23)
at Object._asyncStartSync (async_patch.dart:241:3)
at MapboxWebGlPlatform.animateCamera$body$MapboxWebGlPlatform (mapbox_web_gl_platform.dart:200:11)
at MapboxWebGlPlatform.animateCamera$2$duration (mapbox_web_gl_platform.dart:200:11)
at controller.dart:298:12
at _wrapJsFunctionForAsync_closure.$protected (async_patch.dart:311:19)
at _wrapJsFunctionForAsync_closure.call$2 (async_patch.dart:336:23)
at Object._asyncStartSync (async_patch.dart:241:3)
Workaround: moveCamera still works.
Would be awesome to have this fixed (I have no idea how, maybe it has to do with the optional animation duration?), since the animation is a really awesome and neat part of the framework!
The text was updated successfully, but these errors were encountered:
(Weirdly enough it only produces the error when in --release or --profile mode, not in --debug.)
I saw that there are supposedly some fixes in a fork of mapbox_gl for flutterflow, can't find the code for the changes though - but maybe that'll help narrowing the issue down:
For the web version, the package is based on mapbox_gl_dart, which hasn't been updated recently. It uses the js package that should be replaced by dart:js_interop.
Recent Flutter versions have compatibility issues with the old js package, causing interoperability failures. I successfully fixed the bug by migrating from js to js_interop, referencing the implementation in Ocell-io/mapbox-gl-dart's new-js_interop (see issue #1428).
Without an official update, this package risks becoming deprecated in newer Flutter versions.
Now that mapbox_gl is able to compile to 3.27.0 (🎉🎉🎉), a new issue has cropped up with animateCamera:
Workaround: moveCamera still works.
Would be awesome to have this fixed (I have no idea how, maybe it has to do with the optional animation duration?), since the animation is a really awesome and neat part of the framework!
The text was updated successfully, but these errors were encountered: