Navigation arrow goes out of screen during playback.

Dinesh yadav5 years ago

I am trying to build my own GPS tracking app. Most of the work is done but I am struck at a issue. During location playback, navigation arrow goes out of screen boundaries and have to manually shift map to bring arrow withing screen boundaries. I saw in many tracking app that map shifting happens automatically.
Any advice what aspect/parameter I am lacking and how can I achieve this? Any pointers to traccar github code which can guide me in implementing this. Thanks in advance.