Navigation buttons and zoom buttons

Hi there!
I add a navigation buttons and zoom buttons.
Zoom control works great, but what about left,right and up & down ?

For now I’m using panning mode cursor, but how about do with 4 buttons?

Best Regards!

We don’t have specific code for that but what you can do is get the bounds of the current view, change that bound with for example halves the width to ‘move’ the view to the right or left and then set the new bound to the map.

Or you get the current center of the map and set the new center of the map:

1 Like