public void setRotation(float rotation) {
   this.rotation = rotation;
   if (marker != null) {
     marker.setRotation(rotation);
   }
   update();
 }
Ejemplo n.º 2
0
 @Override
 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
   if (!checkReady()) {
     return;
   }
   float rotation = seekBar.getProgress();
   for (Marker marker : mMarkerRainbow) {
     marker.setRotation(rotation);
   }
 }
Ejemplo n.º 3
0
 /**
  * Update position.
  *
  * @param yaw Float variable.
  * @param coord LatLng variable.
  */
 private void updatePosition(float yaw, LatLng coord) {
   droneMarker.setPosition(coord);
   droneMarker.setRotation(yaw);
   droneMarker.setVisible(true);
 }