Map loading is slow

Topics: Windows Forms
May 23, 2012 at 7:08 AM

I am trying to use the in my application, but is slow when form is loading, below is my code:


// Load map
 gMapLocation.Position = new PointLatLng(3.111666, 101.581285);
gMapLocation.MapProvider = GMapProviders.BingHybridMap;
gMapLocation.MinZoom = 12;
gMapLocation.MaxZoom = 17;
gMapLocation.Zoom = 15;
gMapLocation.Manager.Mode = AccessMode.ServerOnly;

// Add marker on the map
GMapOverlay marker = new GMapOverlay(gMapLocation, "marker");
marker.Markers.Add(new GMapMarkerGoogleRed(new PointLatLng(3.111666, 101.581285)));


When I use Google Map as the MapProvider the performance is worst. How to solve the problem? Thank you.

May 23, 2012 at 8:32 AM

remove gMapLocation.Manager.Mode = AccessMode.ServerOnly;

May 23, 2012 at 9:13 AM

Thank you radioman.

Any reason to remove the line. I have tested, it feels faster. I need to test it for few rounds.

May 23, 2012 at 11:05 AM

possible slowness:

  • first load, prepares cache, few milliseconds
  • first load each day for google/bing, checks if version numbers updated, takes few milliseconds
  • ServerOnly mode has to always relay on servers
  • debug build is slow too