title: Animate marker on Polyline path
body: <p>I have <code>3 markers</code> on a Google Map.</p>
  
  <ol>
  <li><em><code>Two Markers</code></em> to show <code>starting and ending points</code> </li>
  </ol>
  
  <p>Here is the code using <em>to draw a Polyline</em> between these two points:</p>
  
  <pre><code>private void polyLine() {
  
      LatLng starting = new LatLng(##.######, ##.######);
      LatLng ending = new LatLng(##.######, ##.######);
  
      PolylineOptions line = new PolylineOptions().add(starting, ending);
  
      mGoogleMap.addMarker(new MarkerOptions().position(starting).title("Start"));
      mGoogleMap.addMarker(new MarkerOptions().position(ending).title("End"));
  
      mGoogleMap.addPolyline(line);
  
  }
  </code></pre>
  
  <ol start="2">
  <li><em><code>One Marker</code></em> to show <code>current Location</code> [HUE_ROSE]</li>
  </ol>
  
  <p>And to <em><code>animate marker to current location</code></em> using:</p>
  
  <pre><code>@Override
  public void onLocationChanged(Location location)
  {
      Toast.makeText(this, "Location Changed " + location.getLatitude()
              + location.getLongitude(), Toast.LENGTH_LONG).show();
  
      mLastLocation = location;
  
      if (mCurrLocationMarker != null) {
          mCurrLocationMarker.remove();
      }
  
      LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());
  
      if(ourGlobalMarker == null) { // First time adding marker to map
          ourGlobalMarker = mGoogleMap.addMarker(new MarkerOptions().position(latLng)
                  .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ROSE)));
          MarkerAnimation.animateMarkerToICS(ourGlobalMarker, latLng, new LatLngInterpolator.Spherical());
          mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 18));
      } else {
          MarkerAnimation.animateMarkerToICS(ourGlobalMarker, latLng, new LatLngInterpolator.Spherical());
          mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 18));
      }
  
  }
  </code></pre>
  
  <p><strong>PROBLEM:</strong></p>
  
  <p><em><code>Getting Animating Marker, but right side of Polyline</code></em></p>
  
  <p><strong>SOLUTION:</strong></p>
  
  <p><em><code>How Can I show Animated Marker on Polyline Path</code></em></p>
  
  <p>I <em>tried a lot</em> to find <em><code>solution</code></em> for this one, but <code>did not find</code> any thing, share your <code>suggestions</code>.</p>