Class SymbolStyleRenderer
Inherited Members
Namespace: Mapsui.Rendering.Skia
Assembly: Mapsui.Rendering.Skia.dll
Syntax
public class SymbolStyleRenderer : ISkiaStyleRenderer, IStyleRenderer, IFeatureSize
Methods
| Edit this page View SourceDraw(SKCanvas, Viewport, ILayer, IFeature, IStyle, IRenderCache, long)
Drawing function for special styles
Declaration
public bool Draw(SKCanvas canvas, Viewport viewport, ILayer layer, IFeature feature, IStyle style, IRenderCache renderCache, long iteration)
Parameters
Type | Name | Description |
---|---|---|
SKCanvas | canvas | SKCanvas for drawing. |
Viewport | viewport | Active viewport for this drawing operation. |
ILayer | layer | Layer that contains feature. |
IFeature | feature | Feature to draw. |
IStyle | style | Style to draw. |
IRenderCache | renderCache | SymbolCache for ready rendered bitmaps. |
long | iteration |
Returns
Type | Description |
---|---|
bool |
DrawSymbol(SKCanvas, Viewport, ILayer, double, double, SymbolStyle)
Declaration
public static bool DrawSymbol(SKCanvas canvas, Viewport viewport, ILayer layer, double x, double y, SymbolStyle symbolStyle)
Parameters
Type | Name | Description |
---|---|---|
SKCanvas | canvas | |
Viewport | viewport | |
ILayer | layer | |
double | x | |
double | y | |
SymbolStyle | symbolStyle |
Returns
Type | Description |
---|---|
bool |
FeatureSize(SymbolStyle, ISymbolCache)
Declaration
public static double FeatureSize(SymbolStyle symbolStyle, ISymbolCache symbolCache)
Parameters
Type | Name | Description |
---|---|---|
SymbolStyle | symbolStyle | |
ISymbolCache | symbolCache |
Returns
Type | Description |
---|---|
double |