@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
@@ -1,8 +1,8 @@
1
1
  <!-- This file was autogenerated from FillExtrusionLayer.js do not modify -->
2
- ## <MapboxGL.FillExtrusionLayer />
3
- ### FillExtrusionLayer is a style layer that renders one or more 3D extruded polygons on the map.
2
+ # <MapboxGL.FillExtrusionLayer />
3
+ FillExtrusionLayer is a style layer that renders one or more 3D extruded polygons on the map.
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. |
@@ -17,7 +17,7 @@
17
17
  | style | `union` | `none` | `false` | Customizable style attributes |
18
18
 
19
19
 
20
- ### styles
20
+ ## styles
21
21
 
22
22
  * <a href="#visibility">visibility</a><br/>
23
23
  * <a href="#fillextrusionopacity">fillExtrusionOpacity</a><br/>
@@ -33,18 +33,18 @@
33
33
 
34
34
  ___
35
35
 
36
- #### visibility
36
+ ### visibility
37
37
  Name: `visibility`
38
38
 
39
- #### Description
39
+ ### Description
40
40
  Whether this layer is displayed.
41
41
 
42
- #### Type
42
+ ### Type
43
43
  `enum`
44
- #### Default Value
44
+ ### Default Value
45
45
  `visible`
46
46
 
47
- #### Supported Values
47
+ ### Supported Values
48
48
  **visible** - The layer is shown.<br />
49
49
  **none** - The layer is not shown.<br />
50
50
 
@@ -52,382 +52,382 @@ Whether this layer is displayed.
52
52
 
53
53
  ___
54
54
 
55
- #### fillExtrusionOpacity
55
+ ### fillExtrusionOpacity
56
56
  Name: `fillExtrusionOpacity`
57
57
 
58
- #### Description
58
+ ### Description
59
59
  The opacity of the entire fill extrusion layer. This is rendered on a perLayer, not perFeature, basis, and dataDriven styling is not available.
60
60
 
61
- #### Type
61
+ ### Type
62
62
  `number`
63
- #### Default Value
63
+ ### Default Value
64
64
  `1`
65
65
 
66
- #### Minimum
66
+ ### Minimum
67
67
  `0`
68
68
 
69
69
 
70
- #### Maximum
70
+ ### Maximum
71
71
  `1`
72
72
 
73
- #### Expression
73
+ ### Expression
74
74
 
75
75
  Parameters: `zoom`
76
76
  ___
77
77
 
78
- #### Name
78
+ ### Name
79
79
 
80
80
  `fillExtrusionOpacityTransition`
81
81
 
82
- #### Description
82
+ ### Description
83
83
 
84
- The transition affecting any changes to this layer’s fillExtrusionOpacity propery.
84
+ The transition affecting any changes to this layer’s fillExtrusionOpacity property.
85
85
 
86
- #### Type
86
+ ### Type
87
87
 
88
88
  `{ duration, delay }`
89
89
 
90
- #### Units
90
+ ### Units
91
91
  `milliseconds`
92
92
 
93
- #### Default Value
93
+ ### Default Value
94
94
  `{duration: 300, delay: 0}`
95
95
 
96
96
 
97
97
  ___
98
98
 
99
- #### fillExtrusionColor
99
+ ### fillExtrusionColor
100
100
  Name: `fillExtrusionColor`
101
101
 
102
- #### Description
102
+ ### Description
103
103
  The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fillExtrusionOpacity` to set layer opacity.
104
104
 
105
- #### Type
105
+ ### Type
106
106
  `color`
107
- #### Default Value
107
+ ### Default Value
108
108
  `#000000`
109
109
 
110
110
 
111
- #### Disabled By
111
+ ### Disabled By
112
112
  `fillExtrusionPattern`
113
113
 
114
- #### Expression
114
+ ### Expression
115
115
 
116
116
  Parameters: `zoom, feature, feature-state`
117
117
  ___
118
118
 
119
- #### Name
119
+ ### Name
120
120
 
121
121
  `fillExtrusionColorTransition`
122
122
 
123
- #### Description
123
+ ### Description
124
124
 
125
- The transition affecting any changes to this layer’s fillExtrusionColor propery.
125
+ The transition affecting any changes to this layer’s fillExtrusionColor property.
126
126
 
127
- #### Type
127
+ ### Type
128
128
 
129
129
  `{ duration, delay }`
130
130
 
131
- #### Units
131
+ ### Units
132
132
  `milliseconds`
133
133
 
134
- #### Default Value
134
+ ### Default Value
135
135
  `{duration: 300, delay: 0}`
136
136
 
137
137
 
138
138
  ___
139
139
 
140
- #### fillExtrusionTranslate
140
+ ### fillExtrusionTranslate
141
141
  Name: `fillExtrusionTranslate`
142
142
 
143
- #### Description
143
+ ### Description
144
144
  The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.
145
145
 
146
- #### Type
146
+ ### Type
147
147
  `array<number>`
148
- #### Default Value
148
+ ### Default Value
149
149
  `[0,0]`
150
150
 
151
- #### Units
151
+ ### Units
152
152
  `pixels`
153
153
 
154
154
 
155
- #### Expression
155
+ ### Expression
156
156
 
157
157
  Parameters: `zoom`
158
158
  ___
159
159
 
160
- #### Name
160
+ ### Name
161
161
 
162
162
  `fillExtrusionTranslateTransition`
163
163
 
164
- #### Description
164
+ ### Description
165
165
 
166
- The transition affecting any changes to this layer’s fillExtrusionTranslate propery.
166
+ The transition affecting any changes to this layer’s fillExtrusionTranslate property.
167
167
 
168
- #### Type
168
+ ### Type
169
169
 
170
170
  `{ duration, delay }`
171
171
 
172
- #### Units
172
+ ### Units
173
173
  `milliseconds`
174
174
 
175
- #### Default Value
175
+ ### Default Value
176
176
  `{duration: 300, delay: 0}`
177
177
 
178
178
 
179
179
  ___
180
180
 
181
- #### fillExtrusionTranslateAnchor
181
+ ### fillExtrusionTranslateAnchor
182
182
  Name: `fillExtrusionTranslateAnchor`
183
183
 
184
- #### Description
184
+ ### Description
185
185
  Controls the frame of reference for `fillExtrusionTranslate`.
186
186
 
187
- #### Type
187
+ ### Type
188
188
  `enum`
189
- #### Default Value
189
+ ### Default Value
190
190
  `map`
191
191
 
192
- #### Supported Values
192
+ ### Supported Values
193
193
  **map** - The fill extrusion is translated relative to the map.<br />
194
194
  **viewport** - The fill extrusion is translated relative to the viewport.<br />
195
195
 
196
196
 
197
- #### Requires
197
+ ### Requires
198
198
  `fillExtrusionTranslate`
199
199
 
200
- #### Expression
200
+ ### Expression
201
201
 
202
202
  Parameters: `zoom`
203
203
 
204
204
  ___
205
205
 
206
- #### fillExtrusionPattern
206
+ ### fillExtrusionPattern
207
207
  Name: `fillExtrusionPattern`
208
208
 
209
- #### Description
209
+ ### Description
210
210
  Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
211
211
 
212
- #### Type
212
+ ### Type
213
213
  `resolvedImage`
214
214
 
215
215
 
216
- #### Expression
216
+ ### Expression
217
217
 
218
218
  Parameters: `zoom, feature`
219
219
  ___
220
220
 
221
- #### Name
221
+ ### Name
222
222
 
223
223
  `fillExtrusionPatternTransition`
224
224
 
225
- #### Description
225
+ ### Description
226
226
 
227
- The transition affecting any changes to this layer’s fillExtrusionPattern propery.
227
+ The transition affecting any changes to this layer’s fillExtrusionPattern property.
228
228
 
229
- #### Type
229
+ ### Type
230
230
 
231
231
  `{ duration, delay }`
232
232
 
233
- #### Units
233
+ ### Units
234
234
  `milliseconds`
235
235
 
236
- #### Default Value
236
+ ### Default Value
237
237
  `{duration: 300, delay: 0}`
238
238
 
239
239
 
240
240
  ___
241
241
 
242
- #### fillExtrusionHeight
242
+ ### fillExtrusionHeight
243
243
  Name: `fillExtrusionHeight`
244
244
 
245
- #### Description
245
+ ### Description
246
246
  The height with which to extrude this layer.
247
247
 
248
- #### Type
248
+ ### Type
249
249
  `number`
250
- #### Default Value
250
+ ### Default Value
251
251
  `0`
252
252
 
253
- #### Units
253
+ ### Units
254
254
  `meters`
255
255
 
256
- #### Minimum
256
+ ### Minimum
257
257
  `0`
258
258
 
259
259
 
260
- #### Expression
260
+ ### Expression
261
261
 
262
262
  Parameters: `zoom, feature, feature-state`
263
263
  ___
264
264
 
265
- #### Name
265
+ ### Name
266
266
 
267
267
  `fillExtrusionHeightTransition`
268
268
 
269
- #### Description
269
+ ### Description
270
270
 
271
- The transition affecting any changes to this layer’s fillExtrusionHeight propery.
271
+ The transition affecting any changes to this layer’s fillExtrusionHeight property.
272
272
 
273
- #### Type
273
+ ### Type
274
274
 
275
275
  `{ duration, delay }`
276
276
 
277
- #### Units
277
+ ### Units
278
278
  `milliseconds`
279
279
 
280
- #### Default Value
280
+ ### Default Value
281
281
  `{duration: 300, delay: 0}`
282
282
 
283
283
 
284
284
  ___
285
285
 
286
- #### fillExtrusionBase
286
+ ### fillExtrusionBase
287
287
  Name: `fillExtrusionBase`
288
288
 
289
- #### Description
289
+ ### Description
290
290
  The height with which to extrude the base of this layer. Must be less than or equal to `fillExtrusionHeight`.
291
291
 
292
- #### Type
292
+ ### Type
293
293
  `number`
294
- #### Default Value
294
+ ### Default Value
295
295
  `0`
296
296
 
297
- #### Units
297
+ ### Units
298
298
  `meters`
299
299
 
300
- #### Minimum
300
+ ### Minimum
301
301
  `0`
302
302
 
303
303
 
304
- #### Requires
304
+ ### Requires
305
305
  `fillExtrusionHeight`
306
306
 
307
- #### Expression
307
+ ### Expression
308
308
 
309
309
  Parameters: `zoom, feature, feature-state`
310
310
  ___
311
311
 
312
- #### Name
312
+ ### Name
313
313
 
314
314
  `fillExtrusionBaseTransition`
315
315
 
316
- #### Description
316
+ ### Description
317
317
 
318
- The transition affecting any changes to this layer’s fillExtrusionBase propery.
318
+ The transition affecting any changes to this layer’s fillExtrusionBase property.
319
319
 
320
- #### Type
320
+ ### Type
321
321
 
322
322
  `{ duration, delay }`
323
323
 
324
- #### Units
324
+ ### Units
325
325
  `milliseconds`
326
326
 
327
- #### Default Value
327
+ ### Default Value
328
328
  `{duration: 300, delay: 0}`
329
329
 
330
330
 
331
331
  ___
332
332
 
333
- #### fillExtrusionVerticalGradient
333
+ ### fillExtrusionVerticalGradient
334
334
  Name: `fillExtrusionVerticalGradient`
335
335
 
336
- #### Description
336
+ ### Description
337
337
  Whether to apply a vertical gradient to the sides of a fillExtrusion layer. If true, sides will be shaded slightly darker farther down.
338
338
 
339
- #### Type
339
+ ### Type
340
340
  `boolean`
341
- #### Default Value
341
+ ### Default Value
342
342
  `true`
343
343
 
344
344
 
345
- #### Expression
345
+ ### Expression
346
346
 
347
347
  Parameters: `zoom`
348
348
 
349
349
  ___
350
350
 
351
- #### fillExtrusionAmbientOcclusionIntensity
351
+ ### fillExtrusionAmbientOcclusionIntensity
352
352
  Name: `fillExtrusionAmbientOcclusionIntensity`
353
353
 
354
- #### Description
354
+ ### Description
355
355
  Controls the intensity of ambient occlusion (AO) shading. Current AO implementation is a lowCost bestEffort approach that shades area near ground and concave angles between walls. Default value 0.0 disables ambient occlusion and values around 0.3 provide the most plausible results for buildings.
356
356
 
357
- #### Type
357
+ ### Type
358
358
  `number`
359
- #### Default Value
359
+ ### Default Value
360
360
  `0`
361
361
 
362
- #### Minimum
362
+ ### Minimum
363
363
  `0`
364
364
 
365
365
 
366
- #### Maximum
366
+ ### Maximum
367
367
  `1`
368
368
 
369
- #### Expression
369
+ ### Expression
370
370
 
371
371
  Parameters: `zoom`
372
372
  ___
373
373
 
374
- #### Name
374
+ ### Name
375
375
 
376
376
  `fillExtrusionAmbientOcclusionIntensityTransition`
377
377
 
378
- #### Description
378
+ ### Description
379
379
 
380
- The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionIntensity propery.
380
+ The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionIntensity property.
381
381
 
382
- #### Type
382
+ ### Type
383
383
 
384
384
  `{ duration, delay }`
385
385
 
386
- #### Units
386
+ ### Units
387
387
  `milliseconds`
388
388
 
389
- #### Default Value
389
+ ### Default Value
390
390
  `{duration: 300, delay: 0}`
391
391
 
392
392
 
393
393
  ___
394
394
 
395
- #### fillExtrusionAmbientOcclusionRadius
395
+ ### fillExtrusionAmbientOcclusionRadius
396
396
  Name: `fillExtrusionAmbientOcclusionRadius`
397
397
 
398
- #### Description
398
+ ### Description
399
399
  The radius of ambient occlusion (AO) shading, in meters. Current AO implementation is a lowCost bestEffort approach that shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to hight of one floor and brings the most plausible results for buildings.
400
400
 
401
- #### Type
401
+ ### Type
402
402
  `number`
403
- #### Default Value
403
+ ### Default Value
404
404
  `3`
405
405
 
406
- #### Minimum
406
+ ### Minimum
407
407
  `0`
408
408
 
409
409
 
410
- #### Expression
410
+ ### Expression
411
411
 
412
412
  Parameters: `zoom`
413
413
  ___
414
414
 
415
- #### Name
415
+ ### Name
416
416
 
417
417
  `fillExtrusionAmbientOcclusionRadiusTransition`
418
418
 
419
- #### Description
419
+ ### Description
420
420
 
421
- The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionRadius propery.
421
+ The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionRadius property.
422
422
 
423
- #### Type
423
+ ### Type
424
424
 
425
425
  `{ duration, delay }`
426
426
 
427
- #### Units
427
+ ### Units
428
428
  `milliseconds`
429
429
 
430
- #### Default Value
430
+ ### Default Value
431
431
  `{duration: 300, delay: 0}`
432
432
 
433
433