-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Backport setBearing with new Camera api #3397
Comments
The same fix for |
Figured out that the new camera api doesn't like negative degrees for usage in bearing. |
Here you can see the problem. |
Going to add log messages in related cpp code #include <mbgl/platform/log.hpp> and mbgl::Log::Error(mbgl::Event::JNI, "canceltransitions in transform.cpp", "canceltransitions"); and see if a cancel interrupts our animation. |
I have added log messages to multiple methods in |
This results in following output. I'm noticing the following things:
Need to investigate/solve why the |
Investigating the relation of flyTo calls with updates coming from sensor data results in following ouput. The update sensor data is marked as The cause is not coming from the sensor data. Will now look into the update/redraw menthods. |
It seems plausible that |
This is the output without |
This is the output of an animated Some things I'm noticing when comparing logs:
The |
This output indicates that the problem is originating from calling This indication is confirmed by commenting out I believe the way to resolve this is to update the location and bearing in the |
I was able to refactor old way of updating ( |
Just noticed that the Camera API doesn't like negative degree values. |
Currently working on streamlining updates (work similar to #3398) |
To tackle #3398, #3425, #3078 and #3189 I'm going to rewrite UserLocationView. For now I'm going to cleanup the code and PR current implementation, |
Been squashing some bugs before the actual PR. |
Previous mentioned issue is resolved, only remaining thing I'm currently not 💯 about is the direction updates coming from the Android sensors.. We are far from the same UX google is having in their Google Maps app. |
I have been researching how Google is handling their sensor data.. currently without any results. I'm going to finish up current progress. It seems that Google is doing things differently than their examples in aosp or code samples found online. |
This type of backport for
setCenterCoordinate
will land in #3396.We need to backport equivalent for
setBearing
.This is needed to fix issue #2049.
The text was updated successfully, but these errors were encountered: