@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.
- package/.eslintrc.js +2 -2
- package/.github/ISSUE_TEMPLATE/bug_report.yml +112 -0
- package/.husky/pre-commit +5 -0
- package/.nvmrc +1 -1
- package/README-v10.md +1 -1
- package/README.md +28 -23
- package/android/install.md +1 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/camera/CameraStop.kt +27 -31
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt +53 -48
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTLayer.kt +5 -5
- package/docs/Annotation.md +8 -8
- package/docs/Annotations.md +14 -12
- package/docs/Atmosphere.md +76 -76
- package/docs/BackgroundLayer.md +44 -44
- package/docs/Callout.md +4 -4
- package/docs/Camera.md +124 -6
- package/docs/CircleLayer.md +129 -129
- package/docs/CustomHttpHeaders.md +15 -13
- package/docs/FillExtrusionLayer.md +120 -120
- package/docs/FillLayer.md +83 -83
- package/docs/HeadingIndicator.md +3 -3
- package/docs/HeatmapLayer.md +58 -58
- package/docs/ImageSource.md +4 -3
- package/docs/Images.md +3 -3
- package/docs/Light.md +45 -45
- package/docs/LineLayer.md +166 -166
- package/docs/Logger.md +8 -9
- package/docs/MapView.md +32 -32
- package/docs/MapboxGL.md +26 -27
- package/docs/MarkerView.md +11 -6
- package/docs/NativeUserLocation.md +3 -3
- package/docs/OfflineManager.md +35 -33
- package/docs/PointAnnotation.md +12 -6
- package/docs/RasterDemSource.md +3 -3
- package/docs/RasterLayer.md +99 -99
- package/docs/RasterSource.md +5 -3
- package/docs/ShapeSource.md +17 -16
- package/docs/SkyLayer.md +69 -69
- package/docs/Style.md +5 -3
- package/docs/StyleSheet.md +74 -278
- package/docs/SymbolLayer.md +454 -454
- package/docs/Terrain.md +6 -6
- package/docs/UserLocation.md +8 -8
- package/docs/VectorSource.md +9 -8
- package/docs/docs.json +196 -28
- package/docs/snapshotManager.md +7 -5
- package/index.d.ts +41 -26
- package/ios/RCTMGL-v10/CustomHttpHeaders.swift +39 -0
- package/ios/RCTMGL-v10/MGLModule.m +3 -0
- package/ios/RCTMGL-v10/MGLModule.swift +8 -0
- package/ios/RCTMGL-v10/RCTMGLCamera.swift +14 -5
- package/ios/RCTMGL-v10/RCTMGLMarkerView.swift +28 -14
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapper.swift +24 -0
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.m +8 -0
- package/ios/RCTMGL-v10/RCTMGLMarkerViewWrapperManager.swift +14 -0
- package/ios/RCTMGL-v10/RCTMGLOfflineModule.swift +10 -12
- package/javascript/{utils/animated → classes}/AnimatedCoordinatesArray.js +1 -1
- package/javascript/{utils/animated → classes}/AnimatedExtractCoordinateFromArray.js +3 -1
- package/javascript/{utils/animated → classes}/AnimatedPoint.js +0 -0
- package/javascript/{utils/animated → classes}/AnimatedRouteCoordinatesArray.js +3 -1
- package/javascript/{utils/animated → classes}/AnimatedShape.js +9 -3
- package/javascript/classes/index.d.ts +5 -0
- package/javascript/classes/index.js +5 -0
- package/javascript/components/Callout.js +1 -1
- package/javascript/components/Camera.tsx +5 -1
- package/javascript/components/Images.js +1 -1
- package/javascript/components/MapView.js +3 -4
- package/javascript/components/MarkerView.tsx +125 -0
- package/javascript/components/PointAnnotation.d.ts +13 -0
- package/javascript/components/RasterDemSource.js +1 -1
- package/javascript/components/RasterSource.js +1 -1
- package/javascript/components/ShapeSource.js +4 -4
- package/javascript/components/Style.js +1 -1
- package/javascript/components/annotations/Annotation.js +3 -3
- package/javascript/index.js +27 -14
- package/javascript/types/index.ts +14 -0
- package/javascript/utils/BridgeValue.ts +89 -0
- package/javascript/utils/StyleValue.ts +22 -10
- package/javascript/utils/animated/Animated.js +0 -11
- package/javascript/utils/deprecation.js +0 -1
- package/javascript/utils/geoUtils.d.ts +10 -0
- package/javascript/utils/index.d.ts +6 -0
- package/javascript/utils/{styleMap.js → styleMap.ts} +110 -354
- package/javascript/web/MapContext.ts +6 -0
- package/javascript/web/components/Camera.tsx +39 -0
- package/javascript/web/components/MapView.tsx +51 -0
- package/package.json +21 -20
- package/plugin/build/withMapbox.js +0 -2
- package/plugin/install.md +13 -6
- package/scripts/autogenHelpers/DocJSONBuilder.js +43 -4
- package/scripts/autogenHelpers/globals.js +0 -2
- package/scripts/autogenerate.js +3 -4
- package/scripts/templates/component.md.ejs +25 -25
- package/scripts/templates/{styleMap.js.ejs → styleMap.ts.ejs} +7 -4
- package/tsconfig.json +1 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -75
- package/javascript/components/MarkerView.js +0 -91
- package/javascript/utils/BridgeValue.js +0 -81
- package/javascript/utils/resolveAssetSource.d.ts +0 -5
- 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
|
-
|
|
3
|
-
|
|
2
|
+
# <MapboxGL.SkyLayer />
|
|
3
|
+
SkyLayer is a spherical dome around the map that is always rendered behind all other layers
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
32
|
+
### visibility
|
|
33
33
|
Name: `visibility`
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
### Description
|
|
36
36
|
Whether this layer is displayed.
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
### Type
|
|
39
39
|
`enum`
|
|
40
|
-
|
|
40
|
+
### Default Value
|
|
41
41
|
`visible`
|
|
42
42
|
|
|
43
|
-
|
|
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
|
-
|
|
51
|
+
### skyType
|
|
52
52
|
Name: `skyType`
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
### Description
|
|
55
55
|
The type of the sky
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
### Type
|
|
58
58
|
`enum`
|
|
59
|
-
|
|
59
|
+
### Default Value
|
|
60
60
|
`atmosphere`
|
|
61
61
|
|
|
62
|
-
|
|
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
|
-
|
|
67
|
+
### Expression
|
|
68
68
|
|
|
69
69
|
Parameters: `zoom`
|
|
70
70
|
|
|
71
71
|
___
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
### skyAtmosphereSun
|
|
74
74
|
Name: `skyAtmosphereSun`
|
|
75
75
|
|
|
76
|
-
|
|
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
|
-
|
|
79
|
+
### Type
|
|
80
80
|
`array<number>`
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
### Units
|
|
83
83
|
`degrees`
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
### Minimum
|
|
86
86
|
`0,0`
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
### Maximum
|
|
90
90
|
`360,180`
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
### Expression
|
|
93
93
|
|
|
94
94
|
Parameters: `zoom`
|
|
95
95
|
|
|
96
96
|
___
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
### skyAtmosphereSunIntensity
|
|
99
99
|
Name: `skyAtmosphereSunIntensity`
|
|
100
100
|
|
|
101
|
-
|
|
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
|
-
|
|
104
|
+
### Type
|
|
105
105
|
`number`
|
|
106
|
-
|
|
106
|
+
### Default Value
|
|
107
107
|
`10`
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
### Minimum
|
|
110
110
|
`0`
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
### Maximum
|
|
114
114
|
`100`
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
___
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
### skyGradientCenter
|
|
120
120
|
Name: `skyGradientCenter`
|
|
121
121
|
|
|
122
|
-
|
|
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
|
-
|
|
125
|
+
### Type
|
|
126
126
|
`array<number>`
|
|
127
|
-
|
|
127
|
+
### Default Value
|
|
128
128
|
`[0,0]`
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
### Units
|
|
131
131
|
`degrees`
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
### Minimum
|
|
134
134
|
`0,0`
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
### Maximum
|
|
138
138
|
`360,180`
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
### Expression
|
|
141
141
|
|
|
142
142
|
Parameters: `zoom`
|
|
143
143
|
|
|
144
144
|
___
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
### skyGradientRadius
|
|
147
147
|
Name: `skyGradientRadius`
|
|
148
148
|
|
|
149
|
-
|
|
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
|
-
|
|
152
|
+
### Type
|
|
153
153
|
`number`
|
|
154
|
-
|
|
154
|
+
### Default Value
|
|
155
155
|
`90`
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
### Minimum
|
|
158
158
|
`0`
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
### Maximum
|
|
162
162
|
`180`
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
### Expression
|
|
165
165
|
|
|
166
166
|
Parameters: `zoom`
|
|
167
167
|
|
|
168
168
|
___
|
|
169
169
|
|
|
170
|
-
|
|
170
|
+
### skyGradient
|
|
171
171
|
Name: `skyGradient`
|
|
172
172
|
|
|
173
|
-
|
|
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
|
-
|
|
176
|
+
### Type
|
|
177
177
|
`color`
|
|
178
|
-
|
|
178
|
+
### Default Value
|
|
179
179
|
`interpolate,linear,sky-radial-progress,0.8,#87ceeb,1,white`
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
### Expression
|
|
183
183
|
|
|
184
184
|
Parameters: `sky-radial-progress`
|
|
185
185
|
|
|
186
186
|
___
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
### skyAtmosphereHaloColor
|
|
189
189
|
Name: `skyAtmosphereHaloColor`
|
|
190
190
|
|
|
191
|
-
|
|
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
|
-
|
|
194
|
+
### Type
|
|
195
195
|
`color`
|
|
196
|
-
|
|
196
|
+
### Default Value
|
|
197
197
|
`white`
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
|
|
201
201
|
___
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
### skyAtmosphereColor
|
|
204
204
|
Name: `skyAtmosphereColor`
|
|
205
205
|
|
|
206
|
-
|
|
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
|
-
|
|
209
|
+
### Type
|
|
210
210
|
`color`
|
|
211
|
-
|
|
211
|
+
### Default Value
|
|
212
212
|
`white`
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
___
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
### skyOpacity
|
|
219
219
|
Name: `skyOpacity`
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
### Description
|
|
222
222
|
The opacity of the entire sky layer.
|
|
223
223
|
|
|
224
|
-
|
|
224
|
+
### Type
|
|
225
225
|
`number`
|
|
226
|
-
|
|
226
|
+
### Default Value
|
|
227
227
|
`1`
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
### Minimum
|
|
230
230
|
`0`
|
|
231
231
|
|
|
232
232
|
|
|
233
|
-
|
|
233
|
+
### Maximum
|
|
234
234
|
`1`
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
### Expression
|
|
237
237
|
|
|
238
238
|
Parameters: `zoom`
|
|
239
239
|
___
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
### Name
|
|
242
242
|
|
|
243
243
|
`skyOpacityTransition`
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
### Description
|
|
246
246
|
|
|
247
|
-
The transition affecting any changes to this layer’s skyOpacity
|
|
247
|
+
The transition affecting any changes to this layer’s skyOpacity property.
|
|
248
248
|
|
|
249
|
-
|
|
249
|
+
### Type
|
|
250
250
|
|
|
251
251
|
`{ duration, delay }`
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
### Units
|
|
254
254
|
`milliseconds`
|
|
255
255
|
|
|
256
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
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. |
|