SkyLayer
Mapbox spec: sky
import { SkyLayer } from '@rnmapbox/maps';
SkyLayer
SkyLayer is a spherical dome around the map that is always rendered behind all other layers
props
id
string
required A string that uniquely identifies the source in the style to which it is added.
existing
boolean
The id refers to an existing layer in the style. Does not create a new layer.
sourceID
string
The source from which to obtain the data to style. If the source has not yet been added to the current style, the behavior is undefined.
defaults to: Mapbox.StyleSource.DefaultSourceID
aboveLayerID
string
Inserts a layer above aboveLayerID.
belowLayerID
string
Inserts a layer below belowLayerID
layerIndex
number
Inserts a layer at a specified index
filter
FilterExpression
Filter only the features in the source layer that satisfy a condition that you define
style
SkyLayerStyleProps
Customizable style attributes
styles
-
visibility
-
skyType
-
skyAtmosphereSun
-
skyAtmosphereSunIntensity
-
skyGradientCenter
-
skyGradientRadius
-
skyGradient
-
skyAtmosphereHaloColor
-
skyAtmosphereColor
-
skyOpacity
visibility
Name: visibility
Mapbox spec: visibility
Description
Whether this layer is displayed.
Type
enum
Default Value
visible