Binding PictureMarkerSymbol rotation with map

208
0
09-12-2013 10:59 PM
JuliusBagdonas
New Contributor
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?
0 Kudos
0 Replies