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
When you set the padding to the camera (it happens only if padding at least on one side is different from the other sides), and then press the compass, the position of the camera changes. It should be easy to reproduce with the steps below, but please let me know if you can't, so I will attach a video.
It may be useful to see how malibre-native implemented compass click listener on Android. maplibreMap.setFocalBearing() is public, so we can easily implement this. I don't know about other platforms.
Affected Platforms
Android
Platform Version
Android API 29
Library Version
0.6.0
Sample Code
To reproduce:
Go to Camera State Demo and set padding to the camera, for example, top = 10.dp, end = 100.dp
val cameraState = rememberCameraState(firstPosition =CameraPosition(target =CHICAGO, zoom =15.0, padding =PaddingValues(top =10.dp, end =100.dp)))
Run the app and try using the compass. The deviation is small after clicking the first time, but it's bigger the second and third times, so try it a couple of times.
The text was updated successfully, but these errors were encountered:
What happened?
When you set the padding to the camera (it happens only if padding at least on one side is different from the other sides), and then press the compass, the position of the camera changes. It should be easy to reproduce with the steps below, but please let me know if you can't, so I will attach a video.
It may be useful to see how malibre-native implemented compass click listener on Android.
maplibreMap.setFocalBearing()
is public, so we can easily implement this. I don't know about other platforms.Affected Platforms
Android
Platform Version
Android API 29
Library Version
0.6.0
Sample Code
To reproduce:
top = 10.dp
,end = 100.dp
The text was updated successfully, but these errors were encountered: