Load GMap.NET async?

Topics: General
Jun 14, 2013 at 2:09 PM
The operation:
MapProvider = GMapProviders.GoogleHybridMap
takes too long and freezes the UI,
I tried to wrap it with Task to run async but then i get exception "Parameter count mismatch".

How can I make it load async properly?
Jun 14, 2013 at 4:08 PM
use release build
Jun 17, 2013 at 7:28 AM
p.s. you can try manually call:
Jun 17, 2013 at 8:28 PM
Edited Jun 17, 2013 at 8:29 PM
What exactly does GMapProviders.GoogleMap.OnInitialized() do? There's no description and it returns void...

Anyway, I used the latest build and it fixed exception problem, but still when it gets to:
MapProvider = GMapProviders.GoogleHybridMap
The UI freezes..
Here's my code:
Task loadMap = new Task(() => Map.Dispatcher.BeginInvoke(new Action(() =>
              Map.MapProvider = GMapProviders.GoogleHybridMap;
        }), DispatcherPriority.Render), TaskCreationOptions.None);
I think it happens because the code behind the provider assignment in MapProvider property uses the main UI thread
Jun 18, 2013 at 7:27 AM
it's open source project, open the eyes and see ;}
Jun 18, 2013 at 9:15 PM
I looked inside the source code, still didn't get the purpose of OnInitialized as it is not implemented in GoogleMapProvider, only virtually in base provider class...

Also I'm still having troubles with UI freeze.. I think it's a common issue which is important for many users I hope you could give a little more help?
Jun 19, 2013 at 7:26 AM
Edited Jun 19, 2013 at 7:27 AM
it is implemented, and it doesn't freeze for me, so you have to debug it, run the demo and find whats 'wrong'