SkyLayer class
A spherical dome around the map that is always rendered behind all other layers.
Constructors
-
SkyLayer({required String id, Visibility? visibility, List<
Object> ? visibilityExpression, List<Object> ? filter, double? minZoom, double? maxZoom, String? slot, int? skyAtmosphereColor, List<Object> ? skyAtmosphereColorExpression, int? skyAtmosphereHaloColor, List<Object> ? skyAtmosphereHaloColorExpression, List<double?> ? skyAtmosphereSun, List<Object> ? skyAtmosphereSunExpression, double? skyAtmosphereSunIntensity, List<Object> ? skyAtmosphereSunIntensityExpression, int? skyGradient, List<Object> ? skyGradientExpression, List<double?> ? skyGradientCenter, List<Object> ? skyGradientCenterExpression, double? skyGradientRadius, List<Object> ? skyGradientRadiusExpression, double? skyOpacity, List<Object> ? skyOpacityExpression, SkyType? skyType, List<Object> ? skyTypeExpression})
Properties
-
filter
↔ List<
Object> ? -
An expression specifying conditions on source features.
Only features that match the filter are displayed.
read / writeinherited
- 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
- skyAtmosphereColor ↔ int?
-
A color used to tweak the main atmospheric scattering coefficients. Using white applies the default coefficients giving the natural blue color to the atmosphere. This color affects how heavily the corresponding wavelength is represented during scattering. The alpha channel describes the density of the atmosphere, with 1 maximum density and 0 no density.
Default value: "white".
read / write
-
skyAtmosphereColorExpression
↔ List<
Object> ? -
A color used to tweak the main atmospheric scattering coefficients. Using white applies the default coefficients giving the natural blue color to the atmosphere. This color affects how heavily the corresponding wavelength is represented during scattering. The alpha channel describes the density of the atmosphere, with 1 maximum density and 0 no density.
Default value: "white".
read / write
- skyAtmosphereHaloColor ↔ int?
-
A color applied to the atmosphere sun halo. The alpha channel describes how strongly the sun halo is represented in an atmosphere sky layer.
Default value: "white".
read / write
-
skyAtmosphereHaloColorExpression
↔ List<
Object> ? -
A color applied to the atmosphere sun halo. The alpha channel describes how strongly the sun halo is represented in an atmosphere sky layer.
Default value: "white".
read / write
-
skyAtmosphereSun
↔ List<
double?> ? -
Position of the sun center
a azimuthal angle, p polar angle. The azimuthal angle indicates the position of the sun relative to 0 degree north, where degrees proceed clockwise. The polar angle indicates the height of the sun, where 0 degree is directly above, at zenith, and 90 degree at the horizon. When this property is ommitted, the sun center is directly inherited from the light position. Minimum value:0,0. Maximum value:360,180.read / write -
skyAtmosphereSunExpression
↔ List<
Object> ? -
Position of the sun center
a azimuthal angle, p polar angle. The azimuthal angle indicates the position of the sun relative to 0 degree north, where degrees proceed clockwise. The polar angle indicates the height of the sun, where 0 degree is directly above, at zenith, and 90 degree at the horizon. When this property is ommitted, the sun center is directly inherited from the light position. Minimum value:0,0. Maximum value:360,180.read / write - skyAtmosphereSunIntensity ↔ double?
-
Intensity of the sun as a light source in the atmosphere (on a scale from 0 to a 100). Setting higher values will brighten up the sky.
Default value: 10. Value range:
0, 100read / write -
skyAtmosphereSunIntensityExpression
↔ List<
Object> ? -
Intensity of the sun as a light source in the atmosphere (on a scale from 0 to a 100). Setting higher values will brighten up the sky.
Default value: 10. Value range:
0, 100read / write - skyGradient ↔ int?
-
Defines a radial color gradient with which to color the sky. The color values can be interpolated with an expression using
sky-radial-progress. The range0, 1for the interpolant covers a radial distance (in degrees) of0, `sky-gradient-radius`centered at the position specified bysky-gradient-center. Default value: ["interpolate","linear","sky-radial-progress",0.8,"#87ceeb",1,"white"].read / write -
skyGradientCenter
↔ List<
double?> ? -
Position of the gradient center
a azimuthal angle, p polar angle. The azimuthal angle indicates the position of the gradient center relative to 0 degree north, where degrees proceed clockwise. The polar angle indicates the height of the gradient center, where 0 degree is directly above, at zenith, and 90 degree at the horizon. Default value:0,0. Minimum value:0,0. Maximum value:360,180.read / write -
skyGradientCenterExpression
↔ List<
Object> ? -
Position of the gradient center
a azimuthal angle, p polar angle. The azimuthal angle indicates the position of the gradient center relative to 0 degree north, where degrees proceed clockwise. The polar angle indicates the height of the gradient center, where 0 degree is directly above, at zenith, and 90 degree at the horizon. Default value:0,0. Minimum value:0,0. Maximum value:360,180.read / write -
skyGradientExpression
↔ List<
Object> ? -
Defines a radial color gradient with which to color the sky. The color values can be interpolated with an expression using
sky-radial-progress. The range0, 1for the interpolant covers a radial distance (in degrees) of0, `sky-gradient-radius`centered at the position specified bysky-gradient-center. Default value: ["interpolate","linear","sky-radial-progress",0.8,"#87ceeb",1,"white"].read / write - skyGradientRadius ↔ double?
-
The angular distance (measured in degrees) from
sky-gradient-centerup to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction fromsky-gradient-center. Default value: 90. Value range:0, 180read / write -
skyGradientRadiusExpression
↔ List<
Object> ? -
The angular distance (measured in degrees) from
sky-gradient-centerup to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction fromsky-gradient-center. Default value: 90. Value range:0, 180read / write - skyOpacity ↔ double?
-
The opacity of the entire sky layer.
Default value: 1. Value range:
0, 1read / write -
skyOpacityExpression
↔ List<
Object> ? -
The opacity of the entire sky layer.
Default value: 1. Value range:
0, 1read / write - skyType ↔ SkyType?
-
The type of the sky
Default value: "atmosphere".
read / write
-
skyTypeExpression
↔ List<
Object> ? -
The type of the sky
Default value: "atmosphere".
read / write
- slot ↔ String?
-
The slot this layer is assigned to. If specified, and a slot with that name exists, it will be placed at that position in the layer order.
read / writeinherited
- visibility ↔ Visibility?
-
The visibility of the layer.
read / writeinherited
-
visibilityExpression
↔ List<
Object> ? -
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 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