Hello!
I have loaded a map like this:
MapView mapView = new MapView();
ArcGISMap map = new ArcGISMap(SpatialReferences.getWebMercator());
map.setBasemap(Basemap.createImagery());
map.setMaxScale(...);
mapView.setMap(map);
Now, with this mapView object, I would like to rotate the map using the mouse (dragging the mouse).
(note: I don't want to rotate the map itself, just the 'view' or camera, if you will).
I managed to achieve it by doing this when I drag the mouse:
mapView.setViewpointRotationAsync(mousePosDiffX);
(note: this method returns a ListenableFuture<Boolean> to tell when it is done.)
However, it is very laggy.

My first solution would be to avoid calling to much setViewpointRotationAsync by checking the CompletableFuture and call it only when the rotation is it complete using some kind of mutex/lock.. but it is not very successful.
Any help appreciated!
Thanks!