Replies: 1 comment 3 replies
-
I don't have an answer for you in Android, but in maplibre-gl-js it sounds like you want something like this example right? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using maplibre for Android.
In my app, users can control the map through a bluetooth remote controller, that has a small arrow pad.
I need to programmatically pan the map when the user press the corresponding key.
I don't found any directly method to ask the map view to pan to any direction, simulating an user "pan" gesture.
I would like NOT to use a "flyTo" or similar method, since this means that I need to calculate a target location, that could be quite complicated (e.g. if I need to pan left, I also need to know the orientation of the user, in order to correctly calculate the coordinates on his left).
How can I achive this behaviour?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions