@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.
- package/.eslintrc.js +2 -2
- 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/mapview/RCTMGLMapView.kt +5 -1
- 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 +12 -14
- 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 +30 -26
- 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/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 +1 -1
- 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/package.json +16 -13
- 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 +1 -2
- package/scripts/templates/component.md.ejs +25 -25
- package/tsconfig.json +1 -1
- package/javascript/components/MarkerView.js +0 -91
- package/javascript/utils/BridgeValue.js +0 -81
package/docs/FillLayer.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- This file was autogenerated from FillLayer.js do not modify -->
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
# <MapboxGL.FillLayer />
|
|
3
|
+
FillLayer is a style layer that renders one or more filled (and optionally stroked) polygons on the map.
|
|
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. |
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| style | `union` | `none` | `false` | Customizable style attributes |
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## styles
|
|
21
21
|
|
|
22
22
|
* <a href="#fillsortkey">fillSortKey</a><br/>
|
|
23
23
|
* <a href="#visibility">visibility</a><br/>
|
|
@@ -31,34 +31,34 @@
|
|
|
31
31
|
|
|
32
32
|
___
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
### fillSortKey
|
|
35
35
|
Name: `fillSortKey`
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
### Description
|
|
38
38
|
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
### Type
|
|
41
41
|
`number`
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
### Expression
|
|
45
45
|
|
|
46
46
|
Parameters: `zoom, feature`
|
|
47
47
|
|
|
48
48
|
___
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
### visibility
|
|
51
51
|
Name: `visibility`
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
### Description
|
|
54
54
|
Whether this layer is displayed.
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
### Type
|
|
57
57
|
`enum`
|
|
58
|
-
|
|
58
|
+
### Default Value
|
|
59
59
|
`visible`
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
### Supported Values
|
|
62
62
|
**visible** - The layer is shown.<br />
|
|
63
63
|
**none** - The layer is not shown.<br />
|
|
64
64
|
|
|
@@ -66,245 +66,245 @@ Whether this layer is displayed.
|
|
|
66
66
|
|
|
67
67
|
___
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
### fillAntialias
|
|
70
70
|
Name: `fillAntialias`
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
### Description
|
|
73
73
|
Whether or not the fill should be antialiased.
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
### Type
|
|
76
76
|
`boolean`
|
|
77
|
-
|
|
77
|
+
### Default Value
|
|
78
78
|
`true`
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
### Expression
|
|
82
82
|
|
|
83
83
|
Parameters: `zoom`
|
|
84
84
|
|
|
85
85
|
___
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
### fillOpacity
|
|
88
88
|
Name: `fillOpacity`
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
### Description
|
|
91
91
|
The opacity of the entire fill layer. In contrast to the `fillColor`, this value will also affect the 1px stroke around the fill, if the stroke is used.
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
### Type
|
|
94
94
|
`number`
|
|
95
|
-
|
|
95
|
+
### Default Value
|
|
96
96
|
`1`
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
### Minimum
|
|
99
99
|
`0`
|
|
100
100
|
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
### Maximum
|
|
103
103
|
`1`
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
### Expression
|
|
106
106
|
|
|
107
107
|
Parameters: `zoom, feature, feature-state`
|
|
108
108
|
___
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
### Name
|
|
111
111
|
|
|
112
112
|
`fillOpacityTransition`
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
### Description
|
|
115
115
|
|
|
116
|
-
The transition affecting any changes to this layer’s fillOpacity
|
|
116
|
+
The transition affecting any changes to this layer’s fillOpacity property.
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
### Type
|
|
119
119
|
|
|
120
120
|
`{ duration, delay }`
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
### Units
|
|
123
123
|
`milliseconds`
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
### Default Value
|
|
126
126
|
`{duration: 300, delay: 0}`
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
___
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
### fillColor
|
|
132
132
|
Name: `fillColor`
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
### Description
|
|
135
135
|
The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
### Type
|
|
138
138
|
`color`
|
|
139
|
-
|
|
139
|
+
### Default Value
|
|
140
140
|
`#000000`
|
|
141
141
|
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
### Disabled By
|
|
144
144
|
`fillPattern`
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
### Expression
|
|
147
147
|
|
|
148
148
|
Parameters: `zoom, feature, feature-state`
|
|
149
149
|
___
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
### Name
|
|
152
152
|
|
|
153
153
|
`fillColorTransition`
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
### Description
|
|
156
156
|
|
|
157
|
-
The transition affecting any changes to this layer’s fillColor
|
|
157
|
+
The transition affecting any changes to this layer’s fillColor property.
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
### Type
|
|
160
160
|
|
|
161
161
|
`{ duration, delay }`
|
|
162
162
|
|
|
163
|
-
|
|
163
|
+
### Units
|
|
164
164
|
`milliseconds`
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
### Default Value
|
|
167
167
|
`{duration: 300, delay: 0}`
|
|
168
168
|
|
|
169
169
|
|
|
170
170
|
___
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
### fillOutlineColor
|
|
173
173
|
Name: `fillOutlineColor`
|
|
174
174
|
|
|
175
|
-
|
|
175
|
+
### Description
|
|
176
176
|
The outline color of the fill. Matches the value of `fillColor` if unspecified.
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
### Type
|
|
179
179
|
`color`
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
### Disabled By
|
|
183
183
|
`fillPattern`
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
### Expression
|
|
186
186
|
|
|
187
187
|
Parameters: `zoom, feature, feature-state`
|
|
188
188
|
___
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
### Name
|
|
191
191
|
|
|
192
192
|
`fillOutlineColorTransition`
|
|
193
193
|
|
|
194
|
-
|
|
194
|
+
### Description
|
|
195
195
|
|
|
196
|
-
The transition affecting any changes to this layer’s fillOutlineColor
|
|
196
|
+
The transition affecting any changes to this layer’s fillOutlineColor property.
|
|
197
197
|
|
|
198
|
-
|
|
198
|
+
### Type
|
|
199
199
|
|
|
200
200
|
`{ duration, delay }`
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
### Units
|
|
203
203
|
`milliseconds`
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
### Default Value
|
|
206
206
|
`{duration: 300, delay: 0}`
|
|
207
207
|
|
|
208
208
|
|
|
209
209
|
___
|
|
210
210
|
|
|
211
|
-
|
|
211
|
+
### fillTranslate
|
|
212
212
|
Name: `fillTranslate`
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
### Description
|
|
215
215
|
The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
### Type
|
|
218
218
|
`array<number>`
|
|
219
|
-
|
|
219
|
+
### Default Value
|
|
220
220
|
`[0,0]`
|
|
221
221
|
|
|
222
|
-
|
|
222
|
+
### Units
|
|
223
223
|
`pixels`
|
|
224
224
|
|
|
225
225
|
|
|
226
|
-
|
|
226
|
+
### Expression
|
|
227
227
|
|
|
228
228
|
Parameters: `zoom`
|
|
229
229
|
___
|
|
230
230
|
|
|
231
|
-
|
|
231
|
+
### Name
|
|
232
232
|
|
|
233
233
|
`fillTranslateTransition`
|
|
234
234
|
|
|
235
|
-
|
|
235
|
+
### Description
|
|
236
236
|
|
|
237
|
-
The transition affecting any changes to this layer’s fillTranslate
|
|
237
|
+
The transition affecting any changes to this layer’s fillTranslate property.
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
### Type
|
|
240
240
|
|
|
241
241
|
`{ duration, delay }`
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
### Units
|
|
244
244
|
`milliseconds`
|
|
245
245
|
|
|
246
|
-
|
|
246
|
+
### Default Value
|
|
247
247
|
`{duration: 300, delay: 0}`
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
___
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
### fillTranslateAnchor
|
|
253
253
|
Name: `fillTranslateAnchor`
|
|
254
254
|
|
|
255
|
-
|
|
255
|
+
### Description
|
|
256
256
|
Controls the frame of reference for `fillTranslate`.
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
### Type
|
|
259
259
|
`enum`
|
|
260
|
-
|
|
260
|
+
### Default Value
|
|
261
261
|
`map`
|
|
262
262
|
|
|
263
|
-
|
|
263
|
+
### Supported Values
|
|
264
264
|
**map** - The fill is translated relative to the map.<br />
|
|
265
265
|
**viewport** - The fill is translated relative to the viewport.<br />
|
|
266
266
|
|
|
267
267
|
|
|
268
|
-
|
|
268
|
+
### Requires
|
|
269
269
|
`fillTranslate`
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
### Expression
|
|
272
272
|
|
|
273
273
|
Parameters: `zoom`
|
|
274
274
|
|
|
275
275
|
___
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
### fillPattern
|
|
278
278
|
Name: `fillPattern`
|
|
279
279
|
|
|
280
|
-
|
|
280
|
+
### Description
|
|
281
281
|
Name of image in sprite to use for drawing image 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.
|
|
282
282
|
|
|
283
|
-
|
|
283
|
+
### Type
|
|
284
284
|
`resolvedImage`
|
|
285
285
|
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
### Expression
|
|
288
288
|
|
|
289
289
|
Parameters: `zoom, feature`
|
|
290
290
|
___
|
|
291
291
|
|
|
292
|
-
|
|
292
|
+
### Name
|
|
293
293
|
|
|
294
294
|
`fillPatternTransition`
|
|
295
295
|
|
|
296
|
-
|
|
296
|
+
### Description
|
|
297
297
|
|
|
298
|
-
The transition affecting any changes to this layer’s fillPattern
|
|
298
|
+
The transition affecting any changes to this layer’s fillPattern property.
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
### Type
|
|
301
301
|
|
|
302
302
|
`{ duration, delay }`
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
### Units
|
|
305
305
|
`milliseconds`
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
### Default Value
|
|
308
308
|
`{duration: 300, delay: 0}`
|
|
309
309
|
|
|
310
310
|
|
package/docs/HeadingIndicator.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- This file was autogenerated from HeadingIndicator.js do not modify -->
|
|
2
|
-
|
|
3
|
-
###
|
|
2
|
+
# <MapboxGL.HeadingIndicator />
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
|
|
5
|
+
## props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
8
|
| heading | `number` | `none` | `false` | FIX ME NO DESCRIPTION |
|
package/docs/HeatmapLayer.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- This file was autogenerated from HeatmapLayer.js do not modify -->
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
# <MapboxGL.HeatmapLayer />
|
|
3
|
+
HeatmapLayer is a style layer that renders one or more filled circles on the map.
|
|
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. |
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
| style | `union` | `none` | `false` | Customizable style attributes |
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## styles
|
|
21
21
|
|
|
22
22
|
* <a href="#visibility">visibility</a><br/>
|
|
23
23
|
* <a href="#heatmapradius">heatmapRadius</a><br/>
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
|
|
29
29
|
___
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
### visibility
|
|
32
32
|
Name: `visibility`
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
### Description
|
|
35
35
|
Whether this layer is displayed.
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
### Type
|
|
38
38
|
`enum`
|
|
39
|
-
|
|
39
|
+
### Default Value
|
|
40
40
|
`visible`
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
### Supported Values
|
|
43
43
|
**visible** - The layer is shown.<br />
|
|
44
44
|
**none** - The layer is not shown.<br />
|
|
45
45
|
|
|
@@ -47,169 +47,169 @@ Whether this layer is displayed.
|
|
|
47
47
|
|
|
48
48
|
___
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
### heatmapRadius
|
|
51
51
|
Name: `heatmapRadius`
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
### Description
|
|
54
54
|
Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed. `queryRenderedFeatures` on heatmap layers will return points within this radius.
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
### Type
|
|
57
57
|
`number`
|
|
58
|
-
|
|
58
|
+
### Default Value
|
|
59
59
|
`30`
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
### Units
|
|
62
62
|
`pixels`
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
### Minimum
|
|
65
65
|
`1`
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
### Expression
|
|
69
69
|
|
|
70
70
|
Parameters: `zoom, feature, feature-state`
|
|
71
71
|
___
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
### Name
|
|
74
74
|
|
|
75
75
|
`heatmapRadiusTransition`
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
### Description
|
|
78
78
|
|
|
79
|
-
The transition affecting any changes to this layer’s heatmapRadius
|
|
79
|
+
The transition affecting any changes to this layer’s heatmapRadius property.
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
### Type
|
|
82
82
|
|
|
83
83
|
`{ duration, delay }`
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
### Units
|
|
86
86
|
`milliseconds`
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
### Default Value
|
|
89
89
|
`{duration: 300, delay: 0}`
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
___
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
### heatmapWeight
|
|
95
95
|
Name: `heatmapWeight`
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
### Description
|
|
98
98
|
A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
### Type
|
|
101
101
|
`number`
|
|
102
|
-
|
|
102
|
+
### Default Value
|
|
103
103
|
`1`
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
### Minimum
|
|
106
106
|
`0`
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
### Expression
|
|
110
110
|
|
|
111
111
|
Parameters: `zoom, feature, feature-state`
|
|
112
112
|
|
|
113
113
|
___
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
### heatmapIntensity
|
|
116
116
|
Name: `heatmapIntensity`
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
### Description
|
|
119
119
|
Similar to `heatmapWeight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
### Type
|
|
122
122
|
`number`
|
|
123
|
-
|
|
123
|
+
### Default Value
|
|
124
124
|
`1`
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
### Minimum
|
|
127
127
|
`0`
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
### Expression
|
|
131
131
|
|
|
132
132
|
Parameters: `zoom`
|
|
133
133
|
___
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
### Name
|
|
136
136
|
|
|
137
137
|
`heatmapIntensityTransition`
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
### Description
|
|
140
140
|
|
|
141
|
-
The transition affecting any changes to this layer’s heatmapIntensity
|
|
141
|
+
The transition affecting any changes to this layer’s heatmapIntensity property.
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
### Type
|
|
144
144
|
|
|
145
145
|
`{ duration, delay }`
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
### Units
|
|
148
148
|
`milliseconds`
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
### Default Value
|
|
151
151
|
`{duration: 300, delay: 0}`
|
|
152
152
|
|
|
153
153
|
|
|
154
154
|
___
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
### heatmapColor
|
|
157
157
|
Name: `heatmapColor`
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
### Description
|
|
160
160
|
Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmapDensity"]` as input.
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
### Type
|
|
163
163
|
`color`
|
|
164
|
-
|
|
164
|
+
### Default Value
|
|
165
165
|
`interpolate,linear,heatmap-density,0,rgba(0, 0, 255, 0),0.1,royalblue,0.3,cyan,0.5,lime,0.7,yellow,1,red`
|
|
166
166
|
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
### Expression
|
|
169
169
|
|
|
170
170
|
Parameters: `heatmap-density`
|
|
171
171
|
|
|
172
172
|
___
|
|
173
173
|
|
|
174
|
-
|
|
174
|
+
### heatmapOpacity
|
|
175
175
|
Name: `heatmapOpacity`
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
### Description
|
|
178
178
|
The global opacity at which the heatmap layer will be drawn.
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
### Type
|
|
181
181
|
`number`
|
|
182
|
-
|
|
182
|
+
### Default Value
|
|
183
183
|
`1`
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
### Minimum
|
|
186
186
|
`0`
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
### Maximum
|
|
190
190
|
`1`
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
### Expression
|
|
193
193
|
|
|
194
194
|
Parameters: `zoom`
|
|
195
195
|
___
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
### Name
|
|
198
198
|
|
|
199
199
|
`heatmapOpacityTransition`
|
|
200
200
|
|
|
201
|
-
|
|
201
|
+
### Description
|
|
202
202
|
|
|
203
|
-
The transition affecting any changes to this layer’s heatmapOpacity
|
|
203
|
+
The transition affecting any changes to this layer’s heatmapOpacity property.
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
### Type
|
|
206
206
|
|
|
207
207
|
`{ duration, delay }`
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
### Units
|
|
210
210
|
`milliseconds`
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
### Default Value
|
|
213
213
|
`{duration: 300, delay: 0}`
|
|
214
214
|
|
|
215
215
|
|
package/docs/ImageSource.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<!-- This file was autogenerated from ImageSource.js do not modify -->
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
# <MapboxGL.ImageSource />
|
|
3
|
+
ImageSource is a content source that is used for a georeferenced raster image to be shown on the map.
|
|
4
|
+
The georeferenced image scales and rotates as the user zooms and rotates the map
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
## props
|
|
6
7
|
| Prop | Type | Default | Required | Description |
|
|
7
8
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
9
|
| id | `string` | `none` | `true` | A string that uniquely identifies the source. |
|
package/docs/Images.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- This file was autogenerated from Images.js do not modify -->
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
# <MapboxGL.Images />
|
|
3
|
+
Images defines the images used in Symbol etc. layers.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## props
|
|
6
6
|
| Prop | Type | Default | Required | Description |
|
|
7
7
|
| ---- | :--: | :-----: | :------: | :----------: |
|
|
8
8
|
| images | `object` | `none` | `false` | Specifies the external images in key-value pairs required for the shape source.<br/>Keys are names - see iconImage expressions, values can be either urls-s objects<br/>with format {uri: 'http://...'}` or `require('image.png')` or `import 'image.png'` |
|