heremaps / here-android-sdk-examples

Java-based projects using the HERE SDK for Android.
Apache License 2.0
145 stars 191 forks source link

Some problems with map rendering. The map twitches while moving #438

Open Strikelon opened 3 years ago

Strikelon commented 3 years ago

Hello!

Can you please help me with my problem.

I attach the video. The problem occurs sometimes, and I can't highlight any specific steps.

https://cloud.mail.ru/public/S4mU/vBdacGNJz

When the camera moves, after onMapTransformEnd event occurs, it moves close to its previous position before moving and we can see a twitch and find ourselves not at all where we moved

I attach logs with events onPreDraw() , onMapTransformStart() and onMapTransformEnd()

logs.txt

As you can see: picture for logs

from this time 2021-04-16 11:36:45.655 in method onPreDraw() we can see changes "center" coordinates

but from time 2021-04-16 11:36:48.171 in method onPreDraw() we can see repetetive "center" coordinates 45.75087536126375 4.849177245050669

I have such settings:

mapFragment?.mapGesture?.isTiltEnabled = false mapFragment?.mapGesture?.isRotateEnabled = false map?.isTrafficInfoVisible = true map?.setExtrudedBuildingsVisible(true)

Can you please advice, what can be wrong? I have no the such logic in my application that can twitch the map.

As I noticed one time this was reproduced if the phone just lies for a long time with the map screen turned on

My devices: Meizu Android 7 and Samsung (A71) Android 11 on both of then I have the same problem.

I use library version 3.18

Thank you

Strikelon commented 3 years ago

Hello!

Please help me to understand, which instructions or settings could affect map to get such behavior like above!

Thank you!