@rnmapbox/maps 10.0.0-beta.31 → 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 (100) hide show
  1. package/.eslintrc.js +2 -2
  2. package/.github/ISSUE_TEMPLATE/bug_report.yml +112 -0
  3. package/.husky/pre-commit +5 -0
  4. package/.nvmrc +1 -1
  5. package/README-v10.md +1 -1
  6. package/README.md +28 -23
  7. package/android/install.md +1 -1
  8. package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/camera/CameraStop.kt +27 -31
  9. package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt +53 -48
  10. package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTLayer.kt +5 -5
  11. package/docs/Annotation.md +8 -8
  12. package/docs/Annotations.md +14 -12
  13. package/docs/Atmosphere.md +76 -76
  14. package/docs/BackgroundLayer.md +44 -44
  15. package/docs/Callout.md +4 -4
  16. package/docs/Camera.md +124 -6
  17. package/docs/CircleLayer.md +129 -129
  18. package/docs/CustomHttpHeaders.md +15 -13
  19. package/docs/FillExtrusionLayer.md +120 -120
  20. package/docs/FillLayer.md +83 -83
  21. package/docs/HeadingIndicator.md +3 -3
  22. package/docs/HeatmapLayer.md +58 -58
  23. package/docs/ImageSource.md +4 -3
  24. package/docs/Images.md +3 -3
  25. package/docs/Light.md +45 -45
  26. package/docs/LineLayer.md +166 -166
  27. package/docs/Logger.md +8 -9
  28. package/docs/MapView.md +32 -32
  29. package/docs/MapboxGL.md +26 -27
  30. package/docs/MarkerView.md +11 -6
  31. package/docs/NativeUserLocation.md +3 -3
  32. package/docs/OfflineManager.md +35 -33
  33. package/docs/PointAnnotation.md +12 -6
  34. package/docs/RasterDemSource.md +3 -3
  35. package/docs/RasterLayer.md +99 -99
  36. package/docs/RasterSource.md +5 -3
  37. package/docs/ShapeSource.md +17 -16
  38. package/docs/SkyLayer.md +69 -69
  39. package/docs/Style.md +5 -3
  40. package/docs/StyleSheet.md +74 -278
  41. package/docs/SymbolLayer.md +454 -454
  42. package/docs/Terrain.md +6 -6
  43. package/docs/UserLocation.md +8 -8
  44. package/docs/VectorSource.md +9 -8
  45. package/docs/docs.json +196 -28
  46. package/docs/snapshotManager.md +7 -5
  47. package/index.d.ts +41 -26
  48. package/ios/RCTMGL-v10/CustomHttpHeaders.swift +39 -0
  49. package/ios/RCTMGL-v10/MGLModule.m +3 -0
  50. package/ios/RCTMGL-v10/MGLModule.swift +8 -0
  51. package/ios/RCTMGL-v10/RCTMGLCamera.swift +14 -5
  52. package/ios/RCTMGL-v10/RCTMGLMarkerView.swift +28 -14
  53. package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapper.swift +24 -0
  54. package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.m +8 -0
  55. package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.swift +14 -0
  56. package/ios/RCTMGL-v10/RCTMGLOfflineModule.swift +10 -12
  57. package/javascript/{utils/animated → classes}/AnimatedCoordinatesArray.js +1 -1
  58. package/javascript/{utils/animated → classes}/AnimatedExtractCoordinateFromArray.js +3 -1
  59. package/javascript/{utils/animated → classes}/AnimatedPoint.js +0 -0
  60. package/javascript/{utils/animated → classes}/AnimatedRouteCoordinatesArray.js +3 -1
  61. package/javascript/{utils/animated → classes}/AnimatedShape.js +9 -3
  62. package/javascript/classes/index.d.ts +5 -0
  63. package/javascript/classes/index.js +5 -0
  64. package/javascript/components/Callout.js +1 -1
  65. package/javascript/components/Camera.tsx +5 -1
  66. package/javascript/components/Images.js +1 -1
  67. package/javascript/components/MapView.js +3 -4
  68. package/javascript/components/MarkerView.tsx +125 -0
  69. package/javascript/components/PointAnnotation.d.ts +13 -0
  70. package/javascript/components/RasterDemSource.js +1 -1
  71. package/javascript/components/RasterSource.js +1 -1
  72. package/javascript/components/ShapeSource.js +4 -4
  73. package/javascript/components/Style.js +1 -1
  74. package/javascript/components/annotations/Annotation.js +3 -3
  75. package/javascript/index.js +27 -14
  76. package/javascript/types/index.ts +14 -0
  77. package/javascript/utils/BridgeValue.ts +89 -0
  78. package/javascript/utils/StyleValue.ts +22 -10
  79. package/javascript/utils/animated/Animated.js +0 -11
  80. package/javascript/utils/deprecation.js +0 -1
  81. package/javascript/utils/geoUtils.d.ts +10 -0
  82. package/javascript/utils/index.d.ts +6 -0
  83. package/javascript/utils/{styleMap.js → styleMap.ts} +110 -354
  84. package/javascript/web/MapContext.ts +6 -0
  85. package/javascript/web/components/Camera.tsx +39 -0
  86. package/javascript/web/components/MapView.tsx +51 -0
  87. package/package.json +21 -20
  88. package/plugin/build/withMapbox.js +0 -2
  89. package/plugin/install.md +13 -6
  90. package/scripts/autogenHelpers/DocJSONBuilder.js +43 -4
  91. package/scripts/autogenHelpers/globals.js +0 -2
  92. package/scripts/autogenerate.js +3 -4
  93. package/scripts/templates/component.md.ejs +25 -25
  94. package/scripts/templates/{styleMap.js.ejs → styleMap.ts.ejs} +7 -4
  95. package/tsconfig.json +1 -1
  96. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -75
  97. package/javascript/components/MarkerView.js +0 -91
  98. package/javascript/utils/BridgeValue.js +0 -81
  99. package/javascript/utils/resolveAssetSource.d.ts +0 -5
  100. package/javascript/web/MapContext.js +0 -5
package/docs/SkyLayer.md CHANGED
@@ -1,8 +1,8 @@
1
1
  <!-- This file was autogenerated from SkyLayer.js do not modify -->
2
- ## <MapboxGL.SkyLayer />
3
- ### SkyLayer is a spherical dome around the map that is always rendered behind all other layers
2
+ # <MapboxGL.SkyLayer />
3
+ SkyLayer is a spherical dome around the map that is always rendered behind all other layers
4
4
 
5
- ### props
5
+ ## props
6
6
  | Prop | Type | Default | Required | Description |
7
7
  | ---- | :--: | :-----: | :------: | :----------: |
8
8
  | id | `string` | `none` | `true` | A string that uniquely identifies the source in the style to which it is added. |
@@ -14,7 +14,7 @@
14
14
  | style | `union` | `none` | `false` | Customizable style attributes |
15
15
 
16
16
 
17
- ### styles
17
+ ## styles
18
18
 
19
19
  * <a href="#visibility">visibility</a><br/>
20
20
  * <a href="#skytype">skyType</a><br/>
@@ -29,18 +29,18 @@
29
29
 
30
30
  ___
31
31
 
32
- #### visibility
32
+ ### visibility
33
33
  Name: `visibility`
34
34
 
35
- #### Description
35
+ ### Description
36
36
  Whether this layer is displayed.
37
37
 
38
- #### Type
38
+ ### Type
39
39
  `enum`
40
- #### Default Value
40
+ ### Default Value
41
41
  `visible`
42
42
 
43
- #### Supported Values
43
+ ### Supported Values
44
44
  **visible** - The layer is shown.<br />
45
45
  **none** - The layer is not shown.<br />
46
46
 
@@ -48,212 +48,212 @@ Whether this layer is displayed.
48
48
 
49
49
  ___
50
50
 
51
- #### skyType
51
+ ### skyType
52
52
  Name: `skyType`
53
53
 
54
- #### Description
54
+ ### Description
55
55
  The type of the sky
56
56
 
57
- #### Type
57
+ ### Type
58
58
  `enum`
59
- #### Default Value
59
+ ### Default Value
60
60
  `atmosphere`
61
61
 
62
- #### Supported Values
62
+ ### Supported Values
63
63
  **gradient** - Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`.<br />
64
64
  **atmosphere** - Renders the sky with a simulated atmospheric scattering algorithm, the sun direction can be attached to the light position or explicitly set through `sky-atmosphere-sun`.<br />
65
65
 
66
66
 
67
- #### Expression
67
+ ### Expression
68
68
 
69
69
  Parameters: `zoom`
70
70
 
71
71
  ___
72
72
 
73
- #### skyAtmosphereSun
73
+ ### skyAtmosphereSun
74
74
  Name: `skyAtmosphereSun`
75
75
 
76
- #### Description
76
+ ### Description
77
77
  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.
78
78
 
79
- #### Type
79
+ ### Type
80
80
  `array<number>`
81
81
 
82
- #### Units
82
+ ### Units
83
83
  `degrees`
84
84
 
85
- #### Minimum
85
+ ### Minimum
86
86
  `0,0`
87
87
 
88
88
 
89
- #### Maximum
89
+ ### Maximum
90
90
  `360,180`
91
91
 
92
- #### Expression
92
+ ### Expression
93
93
 
94
94
  Parameters: `zoom`
95
95
 
96
96
  ___
97
97
 
98
- #### skyAtmosphereSunIntensity
98
+ ### skyAtmosphereSunIntensity
99
99
  Name: `skyAtmosphereSunIntensity`
100
100
 
101
- #### Description
101
+ ### Description
102
102
  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.
103
103
 
104
- #### Type
104
+ ### Type
105
105
  `number`
106
- #### Default Value
106
+ ### Default Value
107
107
  `10`
108
108
 
109
- #### Minimum
109
+ ### Minimum
110
110
  `0`
111
111
 
112
112
 
113
- #### Maximum
113
+ ### Maximum
114
114
  `100`
115
115
 
116
116
 
117
117
  ___
118
118
 
119
- #### skyGradientCenter
119
+ ### skyGradientCenter
120
120
  Name: `skyGradientCenter`
121
121
 
122
- #### Description
122
+ ### Description
123
123
  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.
124
124
 
125
- #### Type
125
+ ### Type
126
126
  `array<number>`
127
- #### Default Value
127
+ ### Default Value
128
128
  `[0,0]`
129
129
 
130
- #### Units
130
+ ### Units
131
131
  `degrees`
132
132
 
133
- #### Minimum
133
+ ### Minimum
134
134
  `0,0`
135
135
 
136
136
 
137
- #### Maximum
137
+ ### Maximum
138
138
  `360,180`
139
139
 
140
- #### Expression
140
+ ### Expression
141
141
 
142
142
  Parameters: `zoom`
143
143
 
144
144
  ___
145
145
 
146
- #### skyGradientRadius
146
+ ### skyGradientRadius
147
147
  Name: `skyGradientRadius`
148
148
 
149
- #### Description
149
+ ### Description
150
150
  The angular distance (measured in degrees) from `skyGradientCenter` up to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction from `skyGradientCenter`.
151
151
 
152
- #### Type
152
+ ### Type
153
153
  `number`
154
- #### Default Value
154
+ ### Default Value
155
155
  `90`
156
156
 
157
- #### Minimum
157
+ ### Minimum
158
158
  `0`
159
159
 
160
160
 
161
- #### Maximum
161
+ ### Maximum
162
162
  `180`
163
163
 
164
- #### Expression
164
+ ### Expression
165
165
 
166
166
  Parameters: `zoom`
167
167
 
168
168
  ___
169
169
 
170
- #### skyGradient
170
+ ### skyGradient
171
171
  Name: `skyGradient`
172
172
 
173
- #### Description
173
+ ### Description
174
174
  Defines a radial color gradient with which to color the sky. The color values can be interpolated with an expression using `skyRadialProgress`. The range [0, 1] for the interpolant covers a radial distance (in degrees) of [0, `skyGradientRadius`] centered at the position specified by `skyGradientCenter`.
175
175
 
176
- #### Type
176
+ ### Type
177
177
  `color`
178
- #### Default Value
178
+ ### Default Value
179
179
  `interpolate,linear,sky-radial-progress,0.8,#87ceeb,1,white`
180
180
 
181
181
 
182
- #### Expression
182
+ ### Expression
183
183
 
184
184
  Parameters: `sky-radial-progress`
185
185
 
186
186
  ___
187
187
 
188
- #### skyAtmosphereHaloColor
188
+ ### skyAtmosphereHaloColor
189
189
  Name: `skyAtmosphereHaloColor`
190
190
 
191
- #### Description
191
+ ### Description
192
192
  A color applied to the atmosphere sun halo. The alpha channel describes how strongly the sun halo is represented in an atmosphere sky layer.
193
193
 
194
- #### Type
194
+ ### Type
195
195
  `color`
196
- #### Default Value
196
+ ### Default Value
197
197
  `white`
198
198
 
199
199
 
200
200
 
201
201
  ___
202
202
 
203
- #### skyAtmosphereColor
203
+ ### skyAtmosphereColor
204
204
  Name: `skyAtmosphereColor`
205
205
 
206
- #### Description
206
+ ### Description
207
207
  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.
208
208
 
209
- #### Type
209
+ ### Type
210
210
  `color`
211
- #### Default Value
211
+ ### Default Value
212
212
  `white`
213
213
 
214
214
 
215
215
 
216
216
  ___
217
217
 
218
- #### skyOpacity
218
+ ### skyOpacity
219
219
  Name: `skyOpacity`
220
220
 
221
- #### Description
221
+ ### Description
222
222
  The opacity of the entire sky layer.
223
223
 
224
- #### Type
224
+ ### Type
225
225
  `number`
226
- #### Default Value
226
+ ### Default Value
227
227
  `1`
228
228
 
229
- #### Minimum
229
+ ### Minimum
230
230
  `0`
231
231
 
232
232
 
233
- #### Maximum
233
+ ### Maximum
234
234
  `1`
235
235
 
236
- #### Expression
236
+ ### Expression
237
237
 
238
238
  Parameters: `zoom`
239
239
  ___
240
240
 
241
- #### Name
241
+ ### Name
242
242
 
243
243
  `skyOpacityTransition`
244
244
 
245
- #### Description
245
+ ### Description
246
246
 
247
- The transition affecting any changes to this layer’s skyOpacity propery.
247
+ The transition affecting any changes to this layer’s skyOpacity property.
248
248
 
249
- #### Type
249
+ ### Type
250
250
 
251
251
  `{ duration, delay }`
252
252
 
253
- #### Units
253
+ ### Units
254
254
  `milliseconds`
255
255
 
256
- #### Default Value
256
+ ### Default Value
257
257
  `{duration: 300, delay: 0}`
258
258
 
259
259
 
package/docs/Style.md CHANGED
@@ -1,8 +1,10 @@
1
1
  <!-- This file was autogenerated from Style.js do not modify -->
2
- ## <MapboxGL.Style />
3
- ### Style is a component that automatically adds sources / layers to the map using Mapbox GL Style Spec.<br/>Only [`sources`](https://docs.mapbox.com/mapbox-gl-js/style-spec/sources) & [`layers`](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/) are supported.<br/>Other fields such as `sprites`, `glyphs` etc. will be ignored. Not all layer / source attributes from the style spec are supported, in general the supported attributes will mentioned under https://github.com/rnmapbox/maps/tree/main/docs.
2
+ # <MapboxGL.Style />
3
+ Style is a component that automatically adds sources / layers to the map using Mapbox GL Style Spec.
4
+ Only [`sources`](https://docs.mapbox.com/mapbox-gl-js/style-spec/sources) & [`layers`](https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/) are supported.
5
+ Other fields such as `sprites`, `glyphs` etc. will be ignored. Not all layer / source attributes from the style spec are supported, in general the supported attributes will be mentioned under https://github.com/rnmapbox/maps/tree/main/docs.
4
6
 
5
- ### props
7
+ ## props
6
8
  | Prop | Type | Default | Required | Description |
7
9
  | ---- | :--: | :-----: | :------: | :----------: |
8
10
  | json | `any` | `none` | `false` | A JSON object conforming to the schema described in the Mapbox Style Specification , or a URL to such JSON. |