LocationPuck3D class

Constructors

LocationPuck3D({String? modelUri, List<double?>? position, double? modelOpacity, List<double?>? modelScale, String? modelScaleExpression, List<double?>? modelTranslation, List<double?>? modelRotation, bool? modelCastShadows, bool? modelReceiveShadows, ModelScaleMode? modelScaleMode, double? modelEmissiveStrength, String? modelEmissiveStrengthExpression, ModelElevationReference? modelElevationReference})

Properties

hashCode → int
The hash code for this object.
no setteroverride
modelCastShadows ↔ bool?
Enable/Disable shadow casting for the 3D location puck. Default value: true.
getter/setter pair
modelElevationReference ↔ ModelElevationReference?
Selects the base of the model. Some modes might require precomputed elevation data in the tileset. Default value: "ground".
getter/setter pair
modelEmissiveStrength ↔ double?
Strength of the emission. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors). Expressions that depend on measure-light are only supported as a global layer value (and not for each feature) when using GeoJSON or vector tile as the model layer source. Default value: 1. Value range: 0, 5
getter/setter pair
modelEmissiveStrengthExpression ↔ String?
The emissive strength expression of the model, which will overwrite the default model emissive strength.
getter/setter pair
modelOpacity ↔ double?
The opacity of the model. Default value: 1. Value range: 0, 1
getter/setter pair
modelReceiveShadows ↔ bool?
Enable/Disable shadow receiving for the 3D location puck. Default value: true.
getter/setter pair
modelRotation ↔ List<double?>?
The rotation of the model. Default value: 0,0,90.
getter/setter pair
modelScale ↔ List<double?>?
The scale of the model. Default value: 1,1,1.
getter/setter pair
modelScaleExpression ↔ String?
The scale expression of the model, which will overwrite the default scale expression that keeps the model size constant during zoom.
getter/setter pair
modelScaleMode ↔ ModelScaleMode?
Defines scaling mode. Only applies to location-indicator type layers. Default value: "viewport".
getter/setter pair
modelTranslation ↔ List<double?>?
The translation of the model lon, lat, z Default value: 0,0,0.
getter/setter pair
modelUri ↔ String?
An URL for the model file in gltf format. Default value: null.
getter/setter pair
position ↔ List<double?>?
The position of the model. Default value: 0,0.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode() → Object
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.
override

Static Methods

decode(Object result) → LocationPuck3D