I want to develop navigator with nutiteq SDK v3.0.x,
I am currently moving the marker and map by animation with handler in android .
handler.post(new Runnable() {
@Override
public void run() {
long elapsed = SystemClock.uptimeMillis() - start;
float t = interpolator.getInterpolation((float) elapsed
/ duration);
double mx = t * target.getX() + (1 - t)
* markerLocation.getX();
double my = t * target.getY() + (1 - t)
* markerLocation.getY();
MapPos markerPosition = new MapPos(mx, my);
marker.setPos(markerPosition);
if (isFollow) {
double xr = t * x + (1 - t)
* posCenter.getX();
double yr = t * y + (1 - t)
* posCenter.getY();
getMap().setFocusPos(new MapPos(xr, yr), 0);
}
if (t < 1.0) {
handler.postDelayed(this, 12);
}
The problem occurs whenever i want to rotate map around the marker pivot point with duration.
In other words i want to move and rotate map together simultaneously around the current marker pivot position (at the same time marker is moving with animation).
Is there any prepared method to do so?