Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

MKPolyline.FromCoordinates () and UI Threads?

$
0
0

Hi,

I was wondering why the call to MKPolyline.FromCoordinates() requires to be on a UI thread? From my perspective it is currently doing nothing with the UI thread. So either the exception is thrown unnecessarily when calling it from a background thread or internally it is using MKMapView for something that isn't obvious.

Any ideas?

As a bit of context, I am writing some code that converts a file format using lat/lon values to use MKMapPoints and it would be preferable to do it in the background.

I am aware of UIApplication.CheckForIllegalCrossThreadCalls = false but need to know if there are some unintended consequences in using that in the case where I am not actually writing anything to the UI.

Cheers, Clint


Viewing all articles
Browse latest Browse all 204402

Trending Articles