@rnmapbox/maps 10.0.0-beta.33 → 10.0.0-beta.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/.eslintrc.js +2 -2
  2. package/.nvmrc +1 -1
  3. package/README-v10.md +1 -1
  4. package/README.md +28 -23
  5. package/android/install.md +1 -1
  6. package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt +5 -1
  7. package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTLayer.kt +5 -5
  8. package/docs/Annotation.md +8 -8
  9. package/docs/Annotations.md +14 -12
  10. package/docs/Atmosphere.md +76 -76
  11. package/docs/BackgroundLayer.md +44 -44
  12. package/docs/Callout.md +4 -4
  13. package/docs/Camera.md +124 -6
  14. package/docs/CircleLayer.md +129 -129
  15. package/docs/CustomHttpHeaders.md +12 -14
  16. package/docs/FillExtrusionLayer.md +120 -120
  17. package/docs/FillLayer.md +83 -83
  18. package/docs/HeadingIndicator.md +3 -3
  19. package/docs/HeatmapLayer.md +58 -58
  20. package/docs/ImageSource.md +4 -3
  21. package/docs/Images.md +3 -3
  22. package/docs/Light.md +45 -45
  23. package/docs/LineLayer.md +166 -166
  24. package/docs/Logger.md +8 -9
  25. package/docs/MapView.md +32 -32
  26. package/docs/MapboxGL.md +26 -27
  27. package/docs/MarkerView.md +11 -6
  28. package/docs/NativeUserLocation.md +3 -3
  29. package/docs/OfflineManager.md +35 -33
  30. package/docs/PointAnnotation.md +12 -6
  31. package/docs/RasterDemSource.md +3 -3
  32. package/docs/RasterLayer.md +99 -99
  33. package/docs/RasterSource.md +5 -3
  34. package/docs/ShapeSource.md +17 -16
  35. package/docs/SkyLayer.md +69 -69
  36. package/docs/Style.md +5 -3
  37. package/docs/StyleSheet.md +74 -278
  38. package/docs/SymbolLayer.md +454 -454
  39. package/docs/Terrain.md +6 -6
  40. package/docs/UserLocation.md +8 -8
  41. package/docs/VectorSource.md +9 -8
  42. package/docs/docs.json +196 -28
  43. package/docs/snapshotManager.md +7 -5
  44. package/index.d.ts +30 -26
  45. package/ios/RCTMGL-v10/RCTMGLCamera.swift +14 -5
  46. package/ios/RCTMGL-v10/RCTMGLMarkerView.swift +28 -14
  47. package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapper.swift +24 -0
  48. package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.m +8 -0
  49. package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.swift +14 -0
  50. package/javascript/{utils/animated → classes}/AnimatedCoordinatesArray.js +1 -1
  51. package/javascript/{utils/animated → classes}/AnimatedExtractCoordinateFromArray.js +3 -1
  52. package/javascript/{utils/animated → classes}/AnimatedPoint.js +0 -0
  53. package/javascript/{utils/animated → classes}/AnimatedRouteCoordinatesArray.js +3 -1
  54. package/javascript/{utils/animated → classes}/AnimatedShape.js +9 -3
  55. package/javascript/classes/index.d.ts +5 -0
  56. package/javascript/classes/index.js +5 -0
  57. package/javascript/components/Callout.js +1 -1
  58. package/javascript/components/Camera.tsx +5 -1
  59. package/javascript/components/Images.js +1 -1
  60. package/javascript/components/MapView.js +3 -4
  61. package/javascript/components/MarkerView.tsx +125 -0
  62. package/javascript/components/PointAnnotation.d.ts +13 -0
  63. package/javascript/components/RasterDemSource.js +1 -1
  64. package/javascript/components/RasterSource.js +1 -1
  65. package/javascript/components/ShapeSource.js +4 -4
  66. package/javascript/components/Style.js +1 -1
  67. package/javascript/components/annotations/Annotation.js +3 -3
  68. package/javascript/index.js +27 -14
  69. package/javascript/types/index.ts +1 -1
  70. package/javascript/utils/BridgeValue.ts +89 -0
  71. package/javascript/utils/StyleValue.ts +22 -10
  72. package/javascript/utils/animated/Animated.js +0 -11
  73. package/javascript/utils/deprecation.js +0 -1
  74. package/javascript/utils/geoUtils.d.ts +10 -0
  75. package/javascript/utils/index.d.ts +6 -0
  76. package/package.json +16 -13
  77. package/plugin/build/withMapbox.js +0 -2
  78. package/plugin/install.md +13 -6
  79. package/scripts/autogenHelpers/DocJSONBuilder.js +43 -4
  80. package/scripts/autogenHelpers/globals.js +0 -2
  81. package/scripts/autogenerate.js +1 -2
  82. package/scripts/templates/component.md.ejs +25 -25
  83. package/tsconfig.json +1 -1
  84. package/javascript/components/MarkerView.js +0 -91
  85. package/javascript/utils/BridgeValue.js +0 -81
package/.eslintrc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  root: true,
3
3
  parser: '@babel/eslint-parser',
4
- plugins: ['react', 'react-native', 'fp', 'import'],
4
+ plugins: ['react', 'react-native', 'import'],
5
5
  env: {
6
6
  jest: true,
7
7
  },
@@ -38,6 +38,7 @@ module.exports = {
38
38
  extends: [
39
39
  'eslint:recommended',
40
40
  'plugin:react/recommended',
41
+ 'plugin:jest/recommended',
41
42
  '@react-native-community',
42
43
  'prettier',
43
44
  ],
@@ -76,7 +77,6 @@ module.exports = {
76
77
  'no-use-before-define': ['error', { functions: false }],
77
78
  'no-unused-expressions': ['error', { allowTaggedTemplates: true }],
78
79
  'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
79
- 'fp/no-mutating-methods': 'warn',
80
80
  'react-native/no-inline-styles': 0,
81
81
  },
82
82
  ignorePatterns: ['**/rnmapbox.web.symlink'],
package/.nvmrc CHANGED
@@ -1,2 +1,2 @@
1
- v14.17.0
1
+ v14.20.0
2
2
 
package/README-v10.md CHANGED
@@ -80,7 +80,7 @@ code ios/Podfile
80
80
  pod 'React-Core', :path => '../node_modules/react-native/React', modular_headers: true
81
81
  ```
82
82
 
83
- IOS:
83
+ iOS:
84
84
 
85
85
  * Add `$(SDKROOT)/usr/lib/swift` to Library search paths.
86
86
 
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  </tr>
13
13
  </table>
14
14
 
15
- | [![npm version](https://badge.fury.io/js/%40react-native-mapbox-gl%2Fmaps.svg)](https://badge.fury.io/js/%40react-native-mapbox-gl%2Fmaps) | [![iOS & Android Build](https://github.com/rnmapbox/maps/actions/workflows/on-push.yml/badge.svg?branch=main)](https://github.com/rnmapbox/maps/actions/workflows/on-push.yml?branch=main) |
15
+ | [![npm version](https://badge.fury.io/js/%40rnmapbox%2Fmaps.svg)](https://badge.fury.io/js/%40rnmapbox%2Fmaps) | [![iOS & Android Build](https://github.com/rnmapbox/maps/actions/workflows/on-push.yml/badge.svg?branch=main)](https://github.com/rnmapbox/maps/actions/workflows/on-push.yml?branch=main) |
16
16
  |---|---|
17
17
 
18
18
 
@@ -91,17 +91,25 @@ _See [iOS](ios/install.md) & [Android](android/install.md) setup guide for more
91
91
 
92
92
  ### Step 1 - Install Package:
93
93
 
94
+ #### Using `yarn`
95
+ Install the latest source from git:
94
96
  ```sh
95
- # install with Yarn
96
- # yarn add @rnmapbox/maps
97
97
  yarn add rnmapbox/maps#main
98
+ ```
98
99
 
100
+ #### Using `npm`
101
+ Install the latest source from git:
102
+ ```sh
103
+ npm install --save rnmapbox/maps#main
104
+ ```
99
105
 
100
- # or install with NPM
101
- # npm install @rnmapbox/maps --save
102
- npm install rnmapbox/maps#main --save
106
+ #### Installing other versions
107
+ Replace `rnmapbox/maps#main` with the following to install other versions:
108
+ - `@rnmapbox/maps` installs the latest release
103
109
 
104
- ```
110
+
111
+ #### Using `expo`
112
+ Please follow the [Expo Guide](/plugin/install.md).
105
113
 
106
114
  ### Step 2 - Installation Guides:
107
115
 
@@ -136,42 +144,39 @@ npm run android
136
144
  ```
137
145
 
138
146
  ## Adding a map
139
-
140
147
  ```js
141
- import React, { Component } from 'react';
148
+ import React from 'react';
142
149
  import { StyleSheet, View } from 'react-native';
143
150
  import MapboxGL from '@rnmapbox/maps';
144
151
 
145
152
  MapboxGL.setAccessToken('<YOUR_ACCESSTOKEN>');
146
153
 
154
+ const App = () => {
155
+ return (
156
+ <View style={styles.page}>
157
+ <View style={styles.container}>
158
+ <MapboxGL.MapView style={styles.map} />
159
+ </View>
160
+ </View>
161
+ );
162
+ }
163
+
164
+ export default App;
165
+
147
166
  const styles = StyleSheet.create({
148
167
  page: {
149
168
  flex: 1,
150
169
  justifyContent: 'center',
151
170
  alignItems: 'center',
152
- backgroundColor: '#F5FCFF'
153
171
  },
154
172
  container: {
155
173
  height: 300,
156
174
  width: 300,
157
- backgroundColor: 'tomato'
158
175
  },
159
176
  map: {
160
177
  flex: 1
161
178
  }
162
179
  });
163
-
164
- export default class App extends Component {
165
- render() {
166
- return (
167
- <View style={styles.page}>
168
- <View style={styles.container}>
169
- <MapboxGL.MapView style={styles.map} />
170
- </View>
171
- </View>
172
- );
173
- }
174
- }
175
180
  ```
176
181
  ---
177
182
  ## Documentation
@@ -20,7 +20,7 @@ Overwrite mapbox dependencies within your `android/build.gradle > buildscript >
20
20
  buildscript {
21
21
  ext {
22
22
  // ...
23
- RNMapboxMapsImpl = "maplibre" // optinal - as this is the default
23
+ RNMapboxMapsImpl = "maplibre" // optional - as this is the default
24
24
 
25
25
  RNMapboxMapsLibs = { // optional - only required if you want to customize it
26
26
  implementation ("org.maplibre.gl:android-sdk:9.5.2")
@@ -527,7 +527,11 @@ open class RCTMGLMapView(private val mContext: Context, var mManager: RCTMGLMapV
527
527
  layerWaiters.remove(layerId)
528
528
  }
529
529
 
530
- fun waitForLayer(layerID: String, callback: FoundLayerCallback) {
530
+ fun waitForLayer(layerID: String?, callback: FoundLayerCallback) {
531
+ if(layerID == null){
532
+ callback.found(null)
533
+ return
534
+ }
531
535
  if (savedStyle != null) {
532
536
  val layer = savedStyle?.getLayer(layerID)
533
537
  if (layer != null) {
@@ -49,7 +49,7 @@ abstract class RCTLayer<T : Layer?>(protected var mContext: Context) : AbstractS
49
49
  mSourceID = sourceID
50
50
  }
51
51
 
52
- fun setAboveLayerID(aboveLayerID: String) {
52
+ fun setAboveLayerID(aboveLayerID: String?) {
53
53
  if (mAboveLayerID != null && mAboveLayerID == aboveLayerID) {
54
54
  return
55
55
  }
@@ -60,7 +60,7 @@ abstract class RCTLayer<T : Layer?>(protected var mContext: Context) : AbstractS
60
60
  }
61
61
  }
62
62
 
63
- fun setBelowLayerID(belowLayerID: String) {
63
+ fun setBelowLayerID(belowLayerID: String?) {
64
64
  if (mBelowLayerID != null && mBelowLayerID == belowLayerID) {
65
65
  return
66
66
  }
@@ -147,7 +147,7 @@ abstract class RCTLayer<T : Layer?>(protected var mContext: Context) : AbstractS
147
147
  }
148
148
 
149
149
  fun addAbove(aboveLayerID: String?) {
150
- mMapView!!.waitForLayer(aboveLayerID!!, object : FoundLayerCallback {
150
+ mMapView!!.waitForLayer(aboveLayerID, object : FoundLayerCallback {
151
151
  override fun found(layer: Layer?) {
152
152
  if (!hasInitialized()) {
153
153
  return
@@ -160,7 +160,7 @@ abstract class RCTLayer<T : Layer?>(protected var mContext: Context) : AbstractS
160
160
  }
161
161
 
162
162
  fun addBelow(belowLayerID: String?) {
163
- mMapView!!.waitForLayer(belowLayerID!!, object : FoundLayerCallback {
163
+ mMapView!!.waitForLayer(belowLayerID, object : FoundLayerCallback {
164
164
  override fun found(layer: Layer?) {
165
165
  if (!hasInitialized()) {
166
166
  return
@@ -271,4 +271,4 @@ abstract class RCTLayer<T : Layer?>(protected var mContext: Context) : AbstractS
271
271
  companion object {
272
272
  const val LOG_TAG = "RCTLayer"
273
273
  }
274
- }
274
+ }
@@ -1,8 +1,8 @@
1
1
  <!-- This file was autogenerated from Annotation.js do not modify -->
2
- ## <MapboxGL.Annotation />
3
- ###
2
+ # <MapboxGL.Annotation />
4
3
 
5
- ### props
4
+
5
+ ## props
6
6
  | Prop | Type | Default | Required | Description |
7
7
  | ---- | :--: | :-----: | :------: | :----------: |
8
8
  | id | `string` | `none` | `true` | FIX ME NO DESCRIPTION |
@@ -15,22 +15,22 @@
15
15
  | style | `any` | `none` | `false` | FIX ME NO DESCRIPTION |
16
16
  | icon | `union` | `none` | `false` | FIX ME NO DESCRIPTION |
17
17
 
18
- ### methods
19
- #### onPress()
18
+ ## methods
19
+ ### onPress()
20
20
 
21
21
 
22
22
 
23
- ##### arguments
23
+ #### arguments
24
24
  | Name | Type | Required | Description |
25
25
  | ---- | :--: | :------: | :----------: |
26
26
 
27
27
 
28
28
 
29
- #### symbolStyle()
29
+ ### symbolStyle()
30
30
 
31
31
 
32
32
 
33
- ##### arguments
33
+ #### arguments
34
34
  | Name | Type | Required | Description |
35
35
  | ---- | :--: | :------: | :----------: |
36
36
 
@@ -1,17 +1,19 @@
1
- Comparsion of various annotations available in React native mapbox:
1
+ # Annotations Comparison
2
2
 
3
- |*Feature* | *SymbolLayer* |*PointAnnotation* |*MarkerView* |*CircleLayer* |
4
- |-----------------------|--------------------|--------------------------------------|-------------------------|---------------------|
5
- |Can use images | &check; | | | |
6
- |RN Views as childern | iOS: static |iOS: interactive <br/> android: static|interactive | |
7
- |Interactions | click |iOS: full <br/> android: click & drag & callout | supports full interactivity in the sense that inside MarkerViews one can place any RN View, which can be interacted with. Not to be misunderstood with drag n drop interactivity. | click |
8
- |Control Z-index | &check; |iOS: always on top, android: n/a |always on top | &check; |
9
- |Clustering | &check; | | | &check; |
10
- |Style with expressions | &check; | | | &check; |
11
- |iOS implementation | [MGLStyleSymbolLayer](https://docs.mapbox.com/ios/api/maps/5.8.0/Classes/MGLSymbolStyleLayer.html) |[MGLAnnotationView](https://docs.mapbox.com/ios/api/maps/5.8.0/Classes/MGLAnnotationView.html) |[MGLAnnotationView](https://docs.mapbox.com/ios/api/maps/5.8.0/Classes/MGLAnnotationView.html) |[MGLCircleStyleLayer](https://docs.mapbox.com/ios/api/maps/5.8.0/Classes/MGLCircleStyleLayer.html) |
12
- |android implementation | [SymbolLayer](https://docs.mapbox.com/android/api/map-sdk/9.0.0/com/mapbox/mapboxsdk/style/layers/SymbolLayer.html)|[annotation.Symbol](https://docs.mapbox.com/android/api/plugins/annotation/0.8.0/com/mapbox/mapboxsdk/plugins/annotation/Symbol.html)|[annotation.Marker](https://docs.mapbox.com/android/api/plugins/markerview/0.4.0/com/mapbox/mapboxsdk/plugins/markerview/MarkerView.html) |[CircleLayer](https://docs.mapbox.com/android/api/map-sdk/9.0.0/com/mapbox/mapboxsdk/style/layers/CircleLayer.html)|
3
+ Comparsion of various annotations available in React native mapbox:
13
4
 
5
+ | *Feature* | *SymbolLayer* | *PointAnnotation* |*MarkerView* |*CircleLayer* |
6
+ |------------------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------|-------------------------|---------------------|
7
+ | Can use images | &check; | | | |
8
+ | RN Views as children | iOS: static | iOS: interactive <br/> Android: static |interactive | |
9
+ | Interactions | click | iOS: full <br/> Android: click & drag & callout | supports full interactivity in the sense that inside MarkerViews one can place any RN View, which can be interacted with. Not to be misunderstood with drag n drop interactivity. | click |
10
+ | Control Z-index | &check; | iOS: always on top, Android: n/a |always on top | &check; |
11
+ | Clustering | &check; | | | &check; |
12
+ | Style with expressions | &check; | | | &check; |
13
+ | iOS implementation | [MGLStyleSymbolLayer](https://docs.mapbox.com/ios/api/maps/5.8.0/Classes/MGLSymbolStyleLayer.html) | [MGLAnnotationView](https://docs.mapbox.com/ios/api/maps/5.8.0/Classes/MGLAnnotationView.html) |[MGLAnnotationView](https://docs.mapbox.com/ios/api/maps/5.8.0/Classes/MGLAnnotationView.html) |[MGLCircleStyleLayer](https://docs.mapbox.com/ios/api/maps/5.8.0/Classes/MGLCircleStyleLayer.html) |
14
+ | Android implementation | [SymbolLayer](https://docs.mapbox.com/android/api/map-sdk/9.0.0/com/mapbox/mapboxsdk/style/layers/SymbolLayer.html)| [annotation.Symbol](https://docs.mapbox.com/android/api/plugins/annotation/0.8.0/com/mapbox/mapboxsdk/plugins/annotation/Symbol.html) |[annotation.Marker](https://docs.mapbox.com/android/api/plugins/markerview/0.4.0/com/mapbox/mapboxsdk/plugins/markerview/MarkerView.html) |[CircleLayer](https://docs.mapbox.com/android/api/map-sdk/9.0.0/com/mapbox/mapboxsdk/style/layers/CircleLayer.html)|
14
15
 
15
16
  Related links:
17
+
16
18
  * iOS [markers and annotations](https://docs.mapbox.com/ios/maps/overview/markers-and-annotations/)
17
- * android [annotation plugin](https://docs.mapbox.com/android/plugins/overview/annotation/)
19
+ * Android [annotation plugin](https://docs.mapbox.com/android/plugins/overview/annotation/)
@@ -1,14 +1,14 @@
1
1
  <!-- This file was autogenerated from Atmosphere.tsx do not modify -->
2
- ## <MapboxGL.Atmosphere />
3
- ###
2
+ # <MapboxGL.Atmosphere />
4
3
 
5
- ### props
4
+
5
+ ## props
6
6
  | Prop | Type | Default | Required | Description |
7
7
  | ---- | :--: | :-----: | :------: | :----------: |
8
8
  | style | `AtmosphereLayerStyleProps` | `none` | `true` | FIX ME NO DESCRIPTION |
9
9
 
10
10
 
11
- ### styles
11
+ ## styles
12
12
 
13
13
  * <a href="#range">range</a><br/>
14
14
  * <a href="#color">color</a><br/>
@@ -19,247 +19,247 @@
19
19
 
20
20
  ___
21
21
 
22
- #### range
22
+ ### range
23
23
  Name: `range`
24
24
 
25
- #### Description
25
+ ### Description
26
26
  The start and end distance range in which fog fades from fully transparent to fully opaque. The distance to the point at the center of the map is defined as zero, so that negative range values are closer to the camera, and positive values are farther away.
27
27
 
28
- #### Type
28
+ ### Type
29
29
  `array<number>`
30
- #### Default Value
30
+ ### Default Value
31
31
  `[0.5,10]`
32
32
 
33
- #### Minimum
33
+ ### Minimum
34
34
  `-20`
35
35
 
36
36
 
37
- #### Maximum
37
+ ### Maximum
38
38
  `20`
39
39
 
40
- #### Expression
40
+ ### Expression
41
41
 
42
42
  Parameters: `zoom`
43
43
  ___
44
44
 
45
- #### Name
45
+ ### Name
46
46
 
47
47
  `rangeTransition`
48
48
 
49
- #### Description
49
+ ### Description
50
50
 
51
- The transition affecting any changes to this layer’s range propery.
51
+ The transition affecting any changes to this layer’s range property.
52
52
 
53
- #### Type
53
+ ### Type
54
54
 
55
55
  `{ duration, delay }`
56
56
 
57
- #### Units
57
+ ### Units
58
58
  `milliseconds`
59
59
 
60
- #### Default Value
60
+ ### Default Value
61
61
  `{duration: 300, delay: 0}`
62
62
 
63
63
 
64
64
  ___
65
65
 
66
- #### color
66
+ ### color
67
67
  Name: `color`
68
68
 
69
- #### Description
69
+ ### Description
70
70
  The color of the atmosphere region immediately below the horizon and within the `range` and above the horizon and within `horizonBlend`. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.
71
71
 
72
- #### Type
72
+ ### Type
73
73
  `color`
74
- #### Default Value
74
+ ### Default Value
75
75
  `#ffffff`
76
76
 
77
77
 
78
- #### Expression
78
+ ### Expression
79
79
 
80
80
  Parameters: `zoom`
81
81
  ___
82
82
 
83
- #### Name
83
+ ### Name
84
84
 
85
85
  `colorTransition`
86
86
 
87
- #### Description
87
+ ### Description
88
88
 
89
- The transition affecting any changes to this layer’s color propery.
89
+ The transition affecting any changes to this layer’s color property.
90
90
 
91
- #### Type
91
+ ### Type
92
92
 
93
93
  `{ duration, delay }`
94
94
 
95
- #### Units
95
+ ### Units
96
96
  `milliseconds`
97
97
 
98
- #### Default Value
98
+ ### Default Value
99
99
  `{duration: 300, delay: 0}`
100
100
 
101
101
 
102
102
  ___
103
103
 
104
- #### highColor
104
+ ### highColor
105
105
  Name: `highColor`
106
106
 
107
- #### Description
107
+ ### Description
108
108
  The color of the atmosphere region above the horizon, `highColor` extends further above the horizon than the `color` property and its spread can be controlled with `horizonBlend`. The opacity can be set to `0` to remove the high atmosphere color contribution.
109
109
 
110
- #### Type
110
+ ### Type
111
111
  `color`
112
- #### Default Value
112
+ ### Default Value
113
113
  `#245cdf`
114
114
 
115
115
 
116
- #### Expression
116
+ ### Expression
117
117
 
118
118
  Parameters: `zoom`
119
119
  ___
120
120
 
121
- #### Name
121
+ ### Name
122
122
 
123
123
  `highColorTransition`
124
124
 
125
- #### Description
125
+ ### Description
126
126
 
127
- The transition affecting any changes to this layer’s highColor propery.
127
+ The transition affecting any changes to this layer’s highColor property.
128
128
 
129
- #### Type
129
+ ### Type
130
130
 
131
131
  `{ duration, delay }`
132
132
 
133
- #### Units
133
+ ### Units
134
134
  `milliseconds`
135
135
 
136
- #### Default Value
136
+ ### Default Value
137
137
  `{duration: 300, delay: 0}`
138
138
 
139
139
 
140
140
  ___
141
141
 
142
- #### spaceColor
142
+ ### spaceColor
143
143
  Name: `spaceColor`
144
144
 
145
- #### Description
145
+ ### Description
146
146
  The color of the region above the horizon and after the end of the `horizonBlend` contribution. The opacity can be set to `0` to have a transparent background.
147
147
 
148
- #### Type
148
+ ### Type
149
149
  `color`
150
- #### Default Value
150
+ ### Default Value
151
151
  `interpolate,linear,zoom,4,#010b19,7,#367ab9`
152
152
 
153
153
 
154
- #### Expression
154
+ ### Expression
155
155
 
156
156
  Parameters: `zoom`
157
157
  ___
158
158
 
159
- #### Name
159
+ ### Name
160
160
 
161
161
  `spaceColorTransition`
162
162
 
163
- #### Description
163
+ ### Description
164
164
 
165
- The transition affecting any changes to this layer’s spaceColor propery.
165
+ The transition affecting any changes to this layer’s spaceColor property.
166
166
 
167
- #### Type
167
+ ### Type
168
168
 
169
169
  `{ duration, delay }`
170
170
 
171
- #### Units
171
+ ### Units
172
172
  `milliseconds`
173
173
 
174
- #### Default Value
174
+ ### Default Value
175
175
  `{duration: 300, delay: 0}`
176
176
 
177
177
 
178
178
  ___
179
179
 
180
- #### horizonBlend
180
+ ### horizonBlend
181
181
  Name: `horizonBlend`
182
182
 
183
- #### Description
183
+ ### Description
184
184
  Horizon blend applies a smooth fade from the color of the atmosphere to the color of space. A value of zero leaves a sharp transition from atmosphere to space. Increasing the value blends the color of atmosphere into increasingly high angles of the sky.
185
185
 
186
- #### Type
186
+ ### Type
187
187
  `number`
188
- #### Default Value
188
+ ### Default Value
189
189
  `interpolate,linear,zoom,4,0.2,7,0.1`
190
190
 
191
- #### Minimum
191
+ ### Minimum
192
192
  `0`
193
193
 
194
194
 
195
- #### Maximum
195
+ ### Maximum
196
196
  `1`
197
197
 
198
- #### Expression
198
+ ### Expression
199
199
 
200
200
  Parameters: `zoom`
201
201
  ___
202
202
 
203
- #### Name
203
+ ### Name
204
204
 
205
205
  `horizonBlendTransition`
206
206
 
207
- #### Description
207
+ ### Description
208
208
 
209
- The transition affecting any changes to this layer’s horizonBlend propery.
209
+ The transition affecting any changes to this layer’s horizonBlend property.
210
210
 
211
- #### Type
211
+ ### Type
212
212
 
213
213
  `{ duration, delay }`
214
214
 
215
- #### Units
215
+ ### Units
216
216
  `milliseconds`
217
217
 
218
- #### Default Value
218
+ ### Default Value
219
219
  `{duration: 300, delay: 0}`
220
220
 
221
221
 
222
222
  ___
223
223
 
224
- #### starIntensity
224
+ ### starIntensity
225
225
  Name: `starIntensity`
226
226
 
227
- #### Description
227
+ ### Description
228
228
  A value controlling the star intensity where `0` will show no stars and `1` will show stars at their maximum intensity.
229
229
 
230
- #### Type
230
+ ### Type
231
231
  `number`
232
- #### Default Value
232
+ ### Default Value
233
233
  `interpolate,linear,zoom,5,0.35,6,0`
234
234
 
235
- #### Minimum
235
+ ### Minimum
236
236
  `0`
237
237
 
238
238
 
239
- #### Maximum
239
+ ### Maximum
240
240
  `1`
241
241
 
242
- #### Expression
242
+ ### Expression
243
243
 
244
244
  Parameters: `zoom`
245
245
  ___
246
246
 
247
- #### Name
247
+ ### Name
248
248
 
249
249
  `starIntensityTransition`
250
250
 
251
- #### Description
251
+ ### Description
252
252
 
253
- The transition affecting any changes to this layer’s starIntensity propery.
253
+ The transition affecting any changes to this layer’s starIntensity property.
254
254
 
255
- #### Type
255
+ ### Type
256
256
 
257
257
  `{ duration, delay }`
258
258
 
259
- #### Units
259
+ ### Units
260
260
  `milliseconds`
261
261
 
262
- #### Default Value
262
+ ### Default Value
263
263
  `{duration: 300, delay: 0}`
264
264
 
265
265