SkyLayer class

A spherical dome around the map that is always rendered behind all other layers.

Inheritance

Constructors

SkyLayer({required dynamic id, dynamic visibility, dynamic minZoom, dynamic maxZoom, int? skyAtmosphereColor, int? skyAtmosphereHaloColor, List<double?>? skyAtmosphereSun, double? skyAtmosphereSunIntensity, int? skyGradient, List<double?>? skyGradientCenter, double? skyGradientRadius, double? skyOpacity, SkyType? skyType})

Properties

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
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.
getter/setter pair
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.
getter/setter pair
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° north, where degrees proceed clockwise. The polar angle indicates the height of the sun, where 0° is directly above, at zenith, and 90° at the horizon. When this property is ommitted, the sun center is directly inherited from the light position.
getter/setter pair
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.
getter/setter pair
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 range 0, 1 for the interpolant covers a radial distance (in degrees) of 0, `sky-gradient-radius` centered at the position specified by sky-gradient-center.
getter/setter pair
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° north, where degrees proceed clockwise. The polar angle indicates the height of the gradient center, where 0° is directly above, at zenith, and 90° at the horizon.
getter/setter pair
skyGradientRadius double?
The angular distance (measured in degrees) from sky-gradient-center up to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction from sky-gradient-center.
getter/setter pair
skyOpacity double?
The opacity of the entire sky layer.
getter/setter pair
skyType SkyType?
The type of the sky
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) SkyLayer