MapPoint 2009 Download Performance

I am having problems integrating MS MapPoint 2009 into my WinForms.Net 2.0 application in C #. I added an ActiveX MapPoint control to the form and have no problems displaying maps and locations; my concern is the time it takes to load a map after it is created.

Tests on my development machine showed that the average load time is 3 to 5 seconds, during which the application is completely blocked. Although this is not entirely unacceptable, it is very difficult to lose control of the application. Also, since the GUI thread is blocked, I cannot show the download dialog or anything to mask the boot time.

The line that hangs is this: (where axMappointControl1 is a MapPoint control)

axMappointControl1.NewMap(MapPoint.GeoMapRegion.geoMapNorthAmerica);

I tried to execute the NewMap method on another thread, but the GUI thread still ends up blocking.

My questions:

  • What can I do to speed up MapPoint when loading?
  • Is there a way to load MapPoint so that it doesn't block the GUI thread?

Any help is greatly appreciated.

+3
source share
2 answers

In accordance with these topics on mapforums. com The slowness of starting ActiveX is well known and inevitable (although the issue of streaming to help with a responsive GUI is still open.

It was proposed to abandon the ActiveX version in favor of the MapPoint.Application object.

Hope this helps.

+5
source

, - - , . , MapPoint 2010 .

GUI , / , .

MapPoint ( ActiveX) , MapPoint.

+1

Source: https://habr.com/ru/post/1696836/


All Articles