title: Drawing a polyline from my location to a marker
body: <p>I am using Mapbox (4.2.1) to draw a line from my position to a target position. I have the intention of using the straight line as an extremely basic navigation aid. As such I am re-drawing the guide line OnMyLocationChanged(). However it appears that as my location changes it will draw the line to my new location but MyLocationView (User icon) does not update in accordance (See image below). </p>
  
  <p>They will eventually end up meeting again but it takes some time. It seems that the line is getting drawn inside the accuracy radius, however I would prefer if it could draw the line straight from the user icon.</p>
  
  <p>Is there a simple way to draw a line between the user (The actual icon on the map) and a location which updates as the user moves?</p>
  
  <p>My OnMyLocationChanged is:</p>
  
  <pre><code>MapboxMap.OnMyLocationChangeListener listner = new MapboxMap.OnMyLocationChangeListener(){
          @Override
          public void onMyLocationChange(final @Nullable Location locationChanged) {
              //If we are not targeting anything or we are not tracking location
              if(target == null || !map.isMyLocationEnabled()) return;
  
              mapView.getMapAsync(new OnMapReadyCallback() {
                  @Override
                  public void onMapReady(MapboxMap mapboxMap) {
                      //Log.i("LOC-MAPLINE", "Drawing from mapLoc call");
  
                      //Error if we don't have a location
                      if(!mapboxMap.isMyLocationEnabled() || locationChanged == null) return;
  
                      LatLng[] points = new LatLng[2];
  
                      final Location myLoc = locationChanged;
  
                      LatLng loc = new LatLng(myLoc.getLatitude(), myLoc.getLongitude());
                      LatLng dest = new LatLng(target.getLatitude(), target.getLongitude());
                      points[0] = loc;
                      points[1] = dest;
  
                      mapboxMap.removeAnnotations();
  
                      loadMarker(target);
  
  
                      PolylineOptions poly = new PolylineOptions()
                              .add(points)
                              .color(Color.parseColor("#3887be"))
                              .width(5);
                      line = mapboxMap.addPolyline(poly);
                  }
              });
          }
      };
  </code></pre>
  
  <p><img src="https://i.imgur.com/VdlzT8b.png" alt="Line error"></p>
  
  <p>Any assistance is greatly appreciated, thank you!</p>
  
  <p>EDIT (In regards to possible duplicate question - <a href="https://stackoverflow.com/questions/32810495/google-direction-route-from-current-location-to-known-location">Google direction route from current location to known location</a>)
  I believe my question is different for a few reasons.</p>
  
  <ol>
  <li><p>I am more concerned on getting the location of the user icon overlay rather than actual location (Accuracy issue) </p></li>
  <li><p>I am not interested in getting turn for turn directions (Like those from a directions API) </p></li>
  <li><p>I am using Mapbox rather than google maps (Not too sure but there could be some differences). </p></li>
  </ol>
  
  <p>Nevertheless that question does not seem to answer my question</p>