I've poured over the docs and haven't been able to figure this out. Is it even possible?
Relevant documentation: http://developer.android.com/reference/com/google/android/maps/MyLocationOverlay.html
I've poured over the docs and haven't been able to figure this out. Is it even possible?
Relevant documentation: http://developer.android.com/reference/com/google/android/maps/MyLocationOverlay.html
I made a few changes to the previuos code in order to get it to work properly because the arrow was pointing to the wrong direction and rotating in the opposite direction.
I changed
matrix.postRotate(mOrientation);
for
matrix.postRotate(this.getRotation());
and added to the end:
mapView.postInvalidate();
to redraw the arrow when it changes