Class RasterizingTileLayer
Rasterizing Tile Layer. A Layer that Rasterizes and Tiles the Layer. For Faster Performance. It recreates the Tiles if Data is changed.
Implements
Inherited Members
Namespace: Mapsui.Tiling.Layers
Assembly: Mapsui.Tiling.dll
Syntax
public class RasterizingTileLayer : TileLayer, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable, ISourceLayer, IFetchableSource, ILayerFeatureInfo
Constructors
| Edit this page View SourceRasterizingTileLayer(ILayer, float, int, int, IDataFetchStrategy?, IRenderFetchStrategy?, int, int, IPersistentCache<byte[]>?, IProjection?, RenderFormat)
Creates a RasterizingTileLayer which rasterizes a layer for performance
Declaration
public RasterizingTileLayer(ILayer layer, float pixelDensity = 1, int minTiles = 200, int maxTiles = 300, IDataFetchStrategy? dataFetchStrategy = null, IRenderFetchStrategy? renderFetchStrategy = null, int minExtraTiles = -1, int maxExtraTiles = -1, IPersistentCache<byte[]>? persistentCache = null, IProjection? projection = null, RenderFormat renderFormat = RenderFormat.Png)
Parameters
| Type | Name | Description |
|---|---|---|
| ILayer | layer | The Layer to be rasterized |
| float | pixelDensity | |
| int | minTiles | Minimum number of tiles to cache |
| int | maxTiles | Maximum number of tiles to cache |
| IDataFetchStrategy | dataFetchStrategy | Strategy to get list of tiles for given extent |
| IRenderFetchStrategy | renderFetchStrategy | |
| int | minExtraTiles | Number of minimum extra tiles for memory cache |
| int | maxExtraTiles | Number of maximum extra tiles for memory cache |
| IPersistentCache<byte[]> | persistentCache | Persistent Cache |
| IProjection | projection | Projection |
| RenderFormat | renderFormat | Format to Render To |
Properties
| Edit this page View SourceSourceLayer
Declaration
public ILayer SourceLayer { get; }
Property Value
| Type | Description |
|---|---|
| ILayer |
Methods
| Edit this page View SourceGetFeatureInfoAsync(Viewport, ScreenPosition)
Declaration
public Task<IDictionary<string, IEnumerable<IFeature>>> GetFeatureInfoAsync(Viewport viewport, ScreenPosition screenPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| Viewport | viewport | |
| ScreenPosition | screenPosition |
Returns
| Type | Description |
|---|---|
| Task<IDictionary<string, IEnumerable<IFeature>>> |
ViewportChanged(FetchInfo)
Informs the layer that the viewport has changed and it should update its data accordingly.
Declaration
public override void ViewportChanged(FetchInfo fetchInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| FetchInfo | fetchInfo |