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
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Tilting the map does not immediately tilt the My Location blue dot indicator. (However, tilting the map a second time will then cause the My Location indicator to get tilted.)
Platform: Android Mapbox SDK version:4.2.0-beta.5
Steps to trigger behavior
Start out with map showing the My Location indicator.
Tilt the map by calling the following tiltCamera() method.
private void tiltCamera() {
final CameraPosition cameraPosition = new CameraPosition.Builder().tilt(MapboxConstants.MAXIMUM_TILT).build();
final CameraUpdate cameraUpdate = CameraUpdateFactory.newCameraPosition(cameraPosition);
mMapboxMap.moveCamera(cameraUpdate);
}
Expected behavior
I expect both the map and the My Location indicator to be tilted as such... (note that calling tiltCamera() a second time will achieve this result.)
Actual behavior
Only the map gets tilted. The My Location indicator remains in its original perspective as seen here...
I noticed that the problem happens with all of the below camera methods...
moveCamera(CameraUpdate)
easeCamera(CameraUpdate)
animateCamera(CameraUpdate)
However, when I add a sufficiently long duration (~1 second or more) to easeCamera(...) and animateCamera(...), the My Location indicator will get tilted.
Thank you for the detailed explanation @ahuang13. It seems that setting tilt while out of screen is not getting applied. Tilt isn't changed as part of onDraw and is only set when we explicitly call setTilt.
Activity
ahuang13 commentedon Nov 16, 2016
I noticed that the problem happens with all of the below camera methods...
moveCamera(CameraUpdate)easeCamera(CameraUpdate)animateCamera(CameraUpdate)However, when I add a sufficiently long duration (~1 second or more) to
easeCamera(...)andanimateCamera(...), the My Location indicator will get tilted.tobrun commentedon Nov 17, 2016
Thank you for the detailed explanation @ahuang13. It seems that setting tilt while out of screen is not getting applied. Tilt isn't changed as part of
onDrawand is only set when we explicitly callsetTilt.