Google Maps Rotation

I’m wondering how google maps rotates the map according to the orientation of the cell phone. I tried to use these blocks.

blocks (1)

However, azimuth takes all the orientations (x, y, z) when I’m walking the impacts of my steps also interfere in the direction because it takes the direction of the y axis. and it is all shaky as the video.

does anyone know of any way for the map to move according to the map’s compass?

Show us what you try. :thumbsup:

I would like you to do that