title: GoogleMap showing all cars marker with correct bearing
body: <p>I am building a Taxi app, and I manage to add all the cars with marker icon of a Taxi to their exact location.</p>
  
  <p>But for some reason, all the icons are looking towards wrong direction,</p>
  
  <p>Here is what I am trying to achieve:</p>
  
  <p><a href="https://i.stack.imgur.com/h9fqb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h9fqb.jpg" alt="enter image description here"></a></p>
  
  <p>But I am getting: </p>
  
  <p><a href="https://i.stack.imgur.com/zlD1u.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zlD1u.png" alt="enter image description here"></a></p>
  
  <p>My Code:</p>
  
  <p>Here I am just setting the bearing I get for every car from the server as the rotation of the marker, but I am not sure how should I calculate the rotation taking in consideration the actual icon which as an Image it faces left already.</p>
  
  <pre><code>@Override
  public void onMapReady(GoogleMap googleMap) {
      vehicleImage = BitmapDescriptorFactory.fromResource(R.drawable.taxi);
      mMap = googleMap;
      mMap.getUiSettings().setMapToolbarEnabled(false);
      mMap.setTrafficEnabled(true);
  
      for (Vehicle vh : vehicleList) {
          mMap.addMarker(new MarkerOptions().rotation(vh.bearing).position(new LatLng(vh.latitude, vh.longitude)).icon(vehicleImage).flat(true));
      }
  
  
      mMap.setOnMapLoadedCallback(this);
  }
  </code></pre>