TileCaching in SharpMap Provider

Sep 20, 2010 at 11:22 AM

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

Ricardo

Coordinator
Sep 20, 2010 at 12: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?

Paul

Sep 20, 2010 at 1: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);

 

RP