Table of Contents

Class TilePipelineDependencies

The tile-pipeline pieces a consumer supplies from code, handed to TilePipelineHost.Build or set on a map view through BaseMapView.SetTileDependencies.

public sealed class TilePipelineDependencies
Inheritance
object
TilePipelineDependencies

Remarks

Set it before the view's Start runs, or hand it over through BaseMapView.SetTileDependencies afterwards. Every field except Source and Addresses may stay null, and null always means "keep the shipped default". LansMap owns the lifetime of everything the factories return.

Fields

Addresses

Required. Turns a tile coordinate into the URL or path FetcherFactory's fetcher is asked for.

public ITileAddressBuilder Addresses

Field Value

ITileAddressBuilder

ExtraCodecs

Extra block codecs this pipeline recognises on a cache hit. Null is the built-in set only.

public IReadOnlyList<IRuntimeTileBlockCodec> ExtraCodecs

Field Value

IReadOnlyList<IRuntimeTileBlockCodec>

FetcherFactory

Builds the transport, given a slot count and the resolved User-Agent. Null uses LansMap's own HTTP fetcher. A factory, not an instance, because the pipeline creates and disposes the fetcher exactly once per build and an outside instance would split that ownership.

public Func<int, string, ITileFetcher> FetcherFactory

Field Value

Func<int, string, ITileFetcher>

Source

Required. Tile metadata: sizes, zoom range, attribution, and the DiskCacheKey/CacheTag pair that keeps one provider's bytes out of another's cache.

public ITileDataSource Source

Field Value

ITileDataSource

StoreFactory

Builds the between-sessions tile store, given the resolved cache directory and settings. Null uses PackedTileStore. A factory for the same ownership reason as FetcherFactory: the pipeline resolves the directory, retries a failed open and disposes the result.

public Func<string, TileCacheSettings, ITilePersistentStore> StoreFactory

Field Value

Func<string, TileCacheSettings, ITilePersistentStore>