title: Xamarin Forms Map - Polyline background thread?
body: <p>I'm attempting to plot 90,000+ GPS LAT/LONGs on a Xamarin Forms Map.</p>
  
  <p>Using basically the following to highlight my Polyline:</p>
  
  <p><a href="https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/maps/map-overlay/polyline/" rel="nofollow noreferrer">https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/maps/map-overlay/polyline/</a></p>
  
  <p>I want to ensure all the points are plotted/drawn in the background so it allows the UI to still be responsive. Currently its taking 5-10 seconds for UI to become responsive.</p>
  
  <p>I've attempted code similar to the following but I don't believe it's correct.</p>
  
  <pre><code>Task.Factory.StartNew(() =&gt;
  {
      var plist = (from p in totalPoints
                   select new Position(p.Latitude, p.Longitude)).ToList();
  
      Device.BeginInvokeOnMainThread(() =&gt; {
          map.RouteCoordinates = plist;
          map.MoveToRegion(GeoHelper.FromPositions(plist));
      });
  });
  </code></pre>
  
  <p>What's the best way to do this?</p>