chirrup

Binding PictureMarkerSymbol rotation with map

Discussion created by chirrup on Sep 12, 2013
Is there a way to make MarkerSymbol rotate together with map?
I did manage to rotate it using OnPinchListener, but I have to update update graphic manually and it's TERRIBLY SLOW.

mapView.setOnPinchListener(new OnPinchListener() {

 ...

 public void postPointersUp(float arg0, float arg1, float arg2, float arg3, double arg4) {
  markerSymbol.setAngle(-(float) mapView.getRotationAngle());
  graphicsLayer.updateGraphic(graphicsLayer.getGraphicIDs()[0], markerSymbol);
 }
 
 public void postPointersMove(float arg0, float arg1, float arg2, float arg3, double arg4) {
  markerSymbol.setAngle(-(float) mapView.getRotationAngle());
  graphicsLayer.updateGraphic(graphicsLayer.getGraphicIDs()[0], markerSymbol);
 }
);


So are there some other tricks to achieve something like this?

Outcomes