FillExtrusionLayer class Null safety
An extruded (3D) polygon.
Constructors
-
FillExtrusionLayer({required dynamic id, dynamic visibility, dynamic minZoom, dynamic maxZoom, required String sourceId, String? sourceLayer, double? fillExtrusionBase, int? fillExtrusionColor, double? fillExtrusionHeight, double? fillExtrusionOpacity, String? fillExtrusionPattern, List<
double?> ? fillExtrusionTranslate, FillExtrusionTranslateAnchor? fillExtrusionTranslateAnchor, bool? fillExtrusionVerticalGradient})
Properties
- fillExtrusionBase ↔ double?
-
The height with which to extrude the base of this layer. Must be less than or equal to
fill-extrusion-height.read / write - fillExtrusionColor ↔ int?
-
The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root
lightsettings. If this color is specified asrgbawith an alpha component, the alpha component will be ignored; usefill-extrusion-opacityto set layer opacity.read / write - fillExtrusionHeight ↔ double?
-
The height with which to extrude this layer.
read / write
- fillExtrusionOpacity ↔ double?
-
The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.
read / write
- fillExtrusionPattern ↔ String?
-
Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.
read / write
-
fillExtrusionTranslate
↔ List<
double?> ? -
The geometry's offset. Values are
x, ywhere negatives indicate left and up (on the flat plane), respectively.read / write - fillExtrusionTranslateAnchor ↔ FillExtrusionTranslateAnchor?
-
Controls the frame of reference for
fill-extrusion-translate.read / write - fillExtrusionVerticalGradient ↔ bool?
-
Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id ↔ String
-
The ID of the Layer.
read / writeinherited
- maxZoom ↔ double?
-
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
read / writeinherited
- minZoom ↔ double?
-
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
read / writeinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sourceId ↔ String
-
The id of the source.
read / write
- sourceLayer ↔ String?
-
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
read / write
- visibility ↔ Visibility?
-
The visibility of the layer.
read / writeinherited
Methods
-
getType(
) → String -
Get the type of current layer as a String.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
String properties) → FillExtrusionLayer