TileCaching in SharpMap Provider

Sep 20, 2010 at 12:22 PM

Hi, I think that BruTile can use a FileCaching service.


I'm looking at the code and I can't find where and how can I use it.


Thank you


Sep 20, 2010 at 1:35 PM

It is an argument to the WebTileProvider. Not all TileProviders implement it. You can always work around it by composing the provider from its components. Which provider are you using?


Sep 20, 2010 at 2:14 PM

For Bing Map for example I'm using:


new TileLayer(new BingTileSource(BingRequest.UrlBingStaging, "", mt), "TileLayer - Bing - " + mt);

For google maps:


req = new GoogleRequest(mt);
            tileSource = new GoogleTileSource(req);
            tileLayer = new TileLayer(tileSource, "TileLayer - Google - " + mt);