Class RasterizingTileLayer
Rasterizing Tile Layer. A Layer that Rasterizes and Tiles the Layer. For Faster Performance. It recreates the Tiles if Data is changed.
Inherited Members
Namespace: Mapsui.Tiling.Layers
Assembly: Mapsui.Tiling.dll
Syntax
public class RasterizingTileLayer : TileLayer, ILayer, IAnimatable, INotifyPropertyChanged, IDisposable, ISourceLayer, IAsyncDataFetcher
Constructors
| Edit this page View SourceRasterizingTileLayer(ILayer, IRenderer?, 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, IRenderer? rasterizer = null, 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 |
IRenderer | rasterizer | Rasterizer to use. null will use the default |
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 SourceGetFeatures(MRect, double)
Get all features in a given MRect for a given resolution
Declaration
public override IEnumerable<IFeature> GetFeatures(MRect extent, double resolution)
Parameters
Type | Name | Description |
---|---|---|
MRect | extent | Bounding box |
double | resolution | Resolution of viewport |
Returns
Type | Description |
---|---|
IEnumerable<IFeature> |