FillExtrusionPaint¶
Namespace: ThinkGeo.Core.Styling
The resolved paint of one fill-extrusion style layer for one feature at one zoom.
public struct FillExtrusionPaint
Inheritance object → ValueType → FillExtrusionPaint
Remarks:
Unlike raster paint, three of these properties - colour, height and base - are allowed by the style spec to be driven by feature attributes (a building layer's height comes from ["get", "render_height"]), so this resolves through a feature-aware function the way fill and line paint do. Opacity and the vertical gradient are zoom-only.
Properties¶
Color¶
Gets the wall/roof colour.
public GeoColor Color { get; }
Property Value¶
Opacity¶
Gets the layer opacity, 0 to 1.
public float Opacity { get; }
Property Value¶
Height¶
Gets the height the roof sits at, in metres above the tile ground.
public float Height { get; }
Property Value¶
BaseHeight¶
Gets the height the walls start at, in metres above the tile ground.
public float BaseHeight { get; }
Property Value¶
VerticalGradient¶
Gets whether walls are shaded darker toward the ground.
public bool VerticalGradient { get; }
Property Value¶
TranslateX¶
Gets the horizontal screen offset in pixels.
public float TranslateX { get; }
Property Value¶
TranslateY¶
Gets the vertical screen offset in pixels.
public float TranslateY { get; }
Property Value¶
Constructors¶
FillExtrusionPaint(GeoColor, float, float, float, bool, float, float)¶
Initializes a new instance of the FillExtrusionPaint struct.
FillExtrusionPaint(GeoColor color, float opacity, float height, float baseHeight, bool verticalGradient, float translateX, float translateY)
Parameters¶
color GeoColor
The wall/roof colour.
opacity float
Layer opacity, 0 to 1.
height float
The height the roof sits at, in metres above the tile ground.
baseHeight float
The height the walls start at, in metres above the tile ground.
verticalGradient bool
True when walls are shaded darker toward the ground, the style spec default.
translateX float
Horizontal screen offset in pixels.
translateY float
Vertical screen offset in pixels.