Download to cache a given territory

Topics: General
Jul 24, 2011 at 5:13 PM

Greetings to all.
Can I somehow get forced into the cache card for the specific territory?
I apologize if this question has already been discussed.

Jul 24, 2011 at 5:20 PM

use integrated tile prefetchers in demos, select area holding alt and click prefetch

Jul 25, 2011 at 3:40 AM

Thanks.

It work.

But, it work only WindowsForms project. I had to edit the code in a WPF Project to make it work, is a major project WindowsForms?

Jul 25, 2011 at 7:50 AM

what exactly doesn't work in wpf version? Well i'm keeping both version working, from time to time some version gets more attention, but there is no 'major' project ;}

Jul 25, 2011 at 9:01 AM

In WPF version don't work Export/Import button, because not include string in file GMapControl.cs:

#define SQLite

If I find something else I write.

Jul 25, 2011 at 9:21 AM

thanks

Jul 25, 2011 at 5:49 PM

Can not download the map via Prefetch.

---

In the Bug I created a theme on this issue, but now it somehow does not.

Jul 25, 2011 at 5:55 PM

i know, no need to repeat it in other posts ;}

Jul 25, 2011 at 6:02 PM

I'm sorry.

Jul 25, 2011 at 8:02 PM

fixed, thx

Jul 26, 2011 at 6:51 AM

Prefetch don't work in WPF.

The reason not to work properly:

if(task.Value.Img != null && task.Value.Img.CanRead)
                  {...
where task.Value.Img.CanRead=false

I can not understand why tileCacheQueue.Items [0]. Img.CanRead EnqueueCacheTask in the method is true, but in CacheEngineLoop is false - using in WPF, but WindowsForms is all ok (CacheEngineLoop is true).

Jul 26, 2011 at 11:18 AM
Edited Jul 26, 2011 at 12:07 PM

The stream is not available because of the code

if (img! = null)
{
      img.Dispose ();
      img = null;
}

to perform:

if (task.Value.Img! = null & & task.Value.Img.CanRead)
Jul 26, 2011 at 9:16 PM

fixed

Jul 27, 2011 at 2:41 AM
Edited Jul 27, 2011 at 2:42 AM

Thanks. Work. Very good.

Quickly corrected. Well you know your project!