Download map and close programm, CancelTileCaching

Topics: Feature Requests
Jul 27, 2011 at 5:06 AM

If the program loads the map, and I close the program, the program has finished its work, until you download all the assigned card.
I think we should be able to choose a programmer: wait or not, download maps at the end of the program.
And also be able to monitor the load (how much is left, ...)

Jul 27, 2011 at 5:08 PM

it's not loading, it slowly saving loaded tiles to cache

Jul 28, 2011 at 2:36 AM

Now, if the low-speed Internet and do a lot of fast manipulation of the map (zoom, pan), and immediately close the program, the program does not finish at once (see Manager window or as MS VS).

Jul 28, 2011 at 8:16 AM

yes, the option to cancel it would be nice sometimes

Jul 29, 2011 at 5:09 PM

On this work will be performed in the near future?

Jul 29, 2011 at 5:17 PM

future is illusion ;}

Aug 9, 2011 at 10:23 PM
Edited Aug 9, 2011 at 10:25 PM

The saving is happening in the CacheEngineLoop method in GMaps.cs (GMap.NET.Core). I added a simple version to allow this to be stopped. I made two changes:

1. Added a new public boolean in GMaps.cs (under public AccessMode Mode = AccessMode.ServerAndCache)

public bool AbortCacheLoop = false;

2. Changed the while(true) in CacheEngineLoop to


To cancel the saving, simply call this in your main app:

GMaps.Instance.AbortCacheLoop = true;

Aug 13, 2011 at 12:18 PM

added function to stop cache engine: map.Manager.CancelTileCaching();