-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
animateCamera
appears to be broken on web
#162
Comments
It seems like that I have the same issue:
with the following code:
|
Hello, I'll take a look this weekend if i have time |
@mariusvn The issue is just in the release mode and it doesn't matter if the duration is assigned or not
Also not working: (without the animation param)
I also found out that |
Closing this as #254 is now merged and tested :) |
Hi, I noticed that calls to
animateCamera()
seemed to have no effect when running web builds, but the same call worked fine on iOS.Here's what I was calling:
After some debugging I traced it back to this change, which appears to have triggered a null dereference: c3e941b#diff-4666b03e54f2025da49b0f804d0eb4401b13c0e9599cf74089d5d6a4abf144d0
Specifically, the use of
.jsObject
appears to be in the wrong place, asgetProperty
returns anull
for unspecified options.I put together a quick fix in a fork, but I do wonder if this is really the right approach. Maybe the
CameraOptions
class should be updated to reflect the nullability of its members instead.For now I'm just using my fork as a dependency override, but if you think it's the right fix I can open a PR.
The text was updated successfully, but these errors were encountered: