FillExtrusionLayer class
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
.getter/setter pair - 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
light
settings. If this color is specified asrgba
with an alpha component, the alpha component will be ignored; usefill-extrusion-opacity
to set layer opacity.getter/setter pair - fillExtrusionHeight ↔ double?
-
The height with which to extrude this layer.
getter/setter pair
- 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.
getter/setter pair
- 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.
getter/setter pair
-
fillExtrusionTranslate
↔ List<
double?> ? -
The geometry's offset. Values are
x, y
where negatives indicate left and up (on the flat plane), respectively.getter/setter pair - fillExtrusionTranslateAnchor ↔ FillExtrusionTranslateAnchor?
-
Controls the frame of reference for
fill-extrusion-translate
.getter/setter pair - 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.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
The ID of the Layer.
getter/setter pairinherited
- maxZoom ↔ double?
-
The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden.
getter/setter pairinherited
- minZoom ↔ double?
-
The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceId ↔ String
-
The id of the source.
getter/setter pair
- sourceLayer ↔ String?
-
A source layer is an individual layer of data within a vector source. A vector source can have multiple source layers.
getter/setter pair
- visibility ↔ Visibility?
-
The visibility of the layer.
getter/setter pairinherited
Methods
-
getType(
) → String -
Get the type of current layer as a String.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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