@rnmapbox/maps 10.0.0-beta.33 → 10.0.0-beta.35
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 +31 -26
- package/android/install.md +1 -1
- package/android/rctmgl/build.gradle +1 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/RCTMGLPackage.java +8 -3
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerView.kt +15 -6
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.kt +40 -0
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewWrapper.kt +8 -0
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewWrapperManager.kt +21 -0
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/mapview/RCTMGLMapView.kt +26 -1
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/styles/layers/RCTLayer.kt +5 -5
- package/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/modules/RCTMGLModule.kt +1 -0
- 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/ios/install.md +25 -14
- 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 +21 -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/rnmapbox-maps.podspec +1 -1
- 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/android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/annotation/RCTMGLMarkerViewManager.java +0 -45
- package/javascript/components/MarkerView.js +0 -91
- package/javascript/utils/BridgeValue.js +0 -81
package/docs/LineLayer.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!-- This file was autogenerated from LineLayer.js do not modify -->
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
# <MapboxGL.LineLayer />
|
|
3
|
+
LineLayer is a style layer that renders one or more stroked polylines 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="#linecap">lineCap</a><br/>
|
|
23
23
|
* <a href="#linejoin">lineJoin</a><br/>
|
|
@@ -40,118 +40,118 @@
|
|
|
40
40
|
|
|
41
41
|
___
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
### lineCap
|
|
44
44
|
Name: `lineCap`
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
### Description
|
|
47
47
|
The display of line endings.
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
### Type
|
|
50
50
|
`enum`
|
|
51
|
-
|
|
51
|
+
### Default Value
|
|
52
52
|
`butt`
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
### Supported Values
|
|
55
55
|
**butt** - A cap with a squared-off end which is drawn to the exact endpoint of the line.<br />
|
|
56
56
|
**round** - A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line.<br />
|
|
57
57
|
**square** - A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width.<br />
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
### Expression
|
|
61
61
|
|
|
62
62
|
Parameters: `zoom, feature`
|
|
63
63
|
|
|
64
64
|
___
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
### lineJoin
|
|
67
67
|
Name: `lineJoin`
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
### Description
|
|
70
70
|
The display of lines when joining.
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
### Type
|
|
73
73
|
`enum`
|
|
74
|
-
|
|
74
|
+
### Default Value
|
|
75
75
|
`miter`
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
### Supported Values
|
|
78
78
|
**bevel** - A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width.<br />
|
|
79
79
|
**round** - A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line.<br />
|
|
80
80
|
**miter** - A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet.<br />
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
### Supported Style Functions
|
|
84
84
|
`camera`
|
|
85
|
-
|
|
85
|
+
### Expression
|
|
86
86
|
|
|
87
87
|
Parameters: `zoom, feature`
|
|
88
88
|
|
|
89
89
|
___
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
### lineMiterLimit
|
|
92
92
|
Name: `lineMiterLimit`
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
### Description
|
|
95
95
|
Used to automatically convert miter joins to bevel joins for sharp angles.
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
### Type
|
|
98
98
|
`number`
|
|
99
|
-
|
|
99
|
+
### Default Value
|
|
100
100
|
`2`
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
### Expression
|
|
104
104
|
|
|
105
105
|
Parameters: `zoom`
|
|
106
106
|
|
|
107
107
|
___
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
### lineRoundLimit
|
|
110
110
|
Name: `lineRoundLimit`
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
### Description
|
|
113
113
|
Used to automatically convert round joins to miter joins for shallow angles.
|
|
114
114
|
|
|
115
|
-
|
|
115
|
+
### Type
|
|
116
116
|
`number`
|
|
117
|
-
|
|
117
|
+
### Default Value
|
|
118
118
|
`1.05`
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
### Expression
|
|
122
122
|
|
|
123
123
|
Parameters: `zoom`
|
|
124
124
|
|
|
125
125
|
___
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
### lineSortKey
|
|
128
128
|
Name: `lineSortKey`
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
### Description
|
|
131
131
|
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
### Type
|
|
134
134
|
`number`
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
### Expression
|
|
138
138
|
|
|
139
139
|
Parameters: `zoom, feature`
|
|
140
140
|
|
|
141
141
|
___
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
### visibility
|
|
144
144
|
Name: `visibility`
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
### Description
|
|
147
147
|
Whether this layer is displayed.
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
### Type
|
|
150
150
|
`enum`
|
|
151
|
-
|
|
151
|
+
### Default Value
|
|
152
152
|
`visible`
|
|
153
153
|
|
|
154
|
-
|
|
154
|
+
### Supported Values
|
|
155
155
|
**visible** - The layer is shown.<br />
|
|
156
156
|
**none** - The layer is not shown.<br />
|
|
157
157
|
|
|
@@ -159,448 +159,448 @@ Whether this layer is displayed.
|
|
|
159
159
|
|
|
160
160
|
___
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
### lineOpacity
|
|
163
163
|
Name: `lineOpacity`
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
### Description
|
|
166
166
|
The opacity at which the line will be drawn.
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
### Type
|
|
169
169
|
`number`
|
|
170
|
-
|
|
170
|
+
### Default Value
|
|
171
171
|
`1`
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
### Minimum
|
|
174
174
|
`0`
|
|
175
175
|
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
### Maximum
|
|
178
178
|
`1`
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
### Expression
|
|
181
181
|
|
|
182
182
|
Parameters: `zoom, feature, feature-state`
|
|
183
183
|
___
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
### Name
|
|
186
186
|
|
|
187
187
|
`lineOpacityTransition`
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
### Description
|
|
190
190
|
|
|
191
|
-
The transition affecting any changes to this layer’s lineOpacity
|
|
191
|
+
The transition affecting any changes to this layer’s lineOpacity property.
|
|
192
192
|
|
|
193
|
-
|
|
193
|
+
### Type
|
|
194
194
|
|
|
195
195
|
`{ duration, delay }`
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
### Units
|
|
198
198
|
`milliseconds`
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
### Default Value
|
|
201
201
|
`{duration: 300, delay: 0}`
|
|
202
202
|
|
|
203
203
|
|
|
204
204
|
___
|
|
205
205
|
|
|
206
|
-
|
|
206
|
+
### lineColor
|
|
207
207
|
Name: `lineColor`
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
### Description
|
|
210
210
|
The color with which the line will be drawn.
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
### Type
|
|
213
213
|
`color`
|
|
214
|
-
|
|
214
|
+
### Default Value
|
|
215
215
|
`#000000`
|
|
216
216
|
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
### Disabled By
|
|
219
219
|
`linePattern`
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
### Expression
|
|
222
222
|
|
|
223
223
|
Parameters: `zoom, feature, feature-state`
|
|
224
224
|
___
|
|
225
225
|
|
|
226
|
-
|
|
226
|
+
### Name
|
|
227
227
|
|
|
228
228
|
`lineColorTransition`
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
### Description
|
|
231
231
|
|
|
232
|
-
The transition affecting any changes to this layer’s lineColor
|
|
232
|
+
The transition affecting any changes to this layer’s lineColor property.
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
### Type
|
|
235
235
|
|
|
236
236
|
`{ duration, delay }`
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
### Units
|
|
239
239
|
`milliseconds`
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
### Default Value
|
|
242
242
|
`{duration: 300, delay: 0}`
|
|
243
243
|
|
|
244
244
|
|
|
245
245
|
___
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
### lineTranslate
|
|
248
248
|
Name: `lineTranslate`
|
|
249
249
|
|
|
250
|
-
|
|
250
|
+
### Description
|
|
251
251
|
The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
|
|
252
252
|
|
|
253
|
-
|
|
253
|
+
### Type
|
|
254
254
|
`array<number>`
|
|
255
|
-
|
|
255
|
+
### Default Value
|
|
256
256
|
`[0,0]`
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
### Units
|
|
259
259
|
`pixels`
|
|
260
260
|
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
### Expression
|
|
263
263
|
|
|
264
264
|
Parameters: `zoom`
|
|
265
265
|
___
|
|
266
266
|
|
|
267
|
-
|
|
267
|
+
### Name
|
|
268
268
|
|
|
269
269
|
`lineTranslateTransition`
|
|
270
270
|
|
|
271
|
-
|
|
271
|
+
### Description
|
|
272
272
|
|
|
273
|
-
The transition affecting any changes to this layer’s lineTranslate
|
|
273
|
+
The transition affecting any changes to this layer’s lineTranslate property.
|
|
274
274
|
|
|
275
|
-
|
|
275
|
+
### Type
|
|
276
276
|
|
|
277
277
|
`{ duration, delay }`
|
|
278
278
|
|
|
279
|
-
|
|
279
|
+
### Units
|
|
280
280
|
`milliseconds`
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
### Default Value
|
|
283
283
|
`{duration: 300, delay: 0}`
|
|
284
284
|
|
|
285
285
|
|
|
286
286
|
___
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
### lineTranslateAnchor
|
|
289
289
|
Name: `lineTranslateAnchor`
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
### Description
|
|
292
292
|
Controls the frame of reference for `lineTranslate`.
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
### Type
|
|
295
295
|
`enum`
|
|
296
|
-
|
|
296
|
+
### Default Value
|
|
297
297
|
`map`
|
|
298
298
|
|
|
299
|
-
|
|
299
|
+
### Supported Values
|
|
300
300
|
**map** - The line is translated relative to the map.<br />
|
|
301
301
|
**viewport** - The line is translated relative to the viewport.<br />
|
|
302
302
|
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
### Requires
|
|
305
305
|
`lineTranslate`
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
### Expression
|
|
308
308
|
|
|
309
309
|
Parameters: `zoom`
|
|
310
310
|
|
|
311
311
|
___
|
|
312
312
|
|
|
313
|
-
|
|
313
|
+
### lineWidth
|
|
314
314
|
Name: `lineWidth`
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
### Description
|
|
317
317
|
Stroke thickness.
|
|
318
318
|
|
|
319
|
-
|
|
319
|
+
### Type
|
|
320
320
|
`number`
|
|
321
|
-
|
|
321
|
+
### Default Value
|
|
322
322
|
`1`
|
|
323
323
|
|
|
324
|
-
|
|
324
|
+
### Units
|
|
325
325
|
`pixels`
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
### Minimum
|
|
328
328
|
`0`
|
|
329
329
|
|
|
330
330
|
|
|
331
|
-
|
|
331
|
+
### Supported Style Functions
|
|
332
332
|
`camera`
|
|
333
|
-
|
|
333
|
+
### Expression
|
|
334
334
|
|
|
335
335
|
Parameters: `zoom, feature, feature-state`
|
|
336
336
|
___
|
|
337
337
|
|
|
338
|
-
|
|
338
|
+
### Name
|
|
339
339
|
|
|
340
340
|
`lineWidthTransition`
|
|
341
341
|
|
|
342
|
-
|
|
342
|
+
### Description
|
|
343
343
|
|
|
344
|
-
The transition affecting any changes to this layer’s lineWidth
|
|
344
|
+
The transition affecting any changes to this layer’s lineWidth property.
|
|
345
345
|
|
|
346
|
-
|
|
346
|
+
### Type
|
|
347
347
|
|
|
348
348
|
`{ duration, delay }`
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
### Units
|
|
351
351
|
`milliseconds`
|
|
352
352
|
|
|
353
|
-
|
|
353
|
+
### Default Value
|
|
354
354
|
`{duration: 300, delay: 0}`
|
|
355
355
|
|
|
356
356
|
|
|
357
357
|
___
|
|
358
358
|
|
|
359
|
-
|
|
359
|
+
### lineGapWidth
|
|
360
360
|
Name: `lineGapWidth`
|
|
361
361
|
|
|
362
|
-
|
|
362
|
+
### Description
|
|
363
363
|
Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
|
|
364
364
|
|
|
365
|
-
|
|
365
|
+
### Type
|
|
366
366
|
`number`
|
|
367
|
-
|
|
367
|
+
### Default Value
|
|
368
368
|
`0`
|
|
369
369
|
|
|
370
|
-
|
|
370
|
+
### Units
|
|
371
371
|
`pixels`
|
|
372
372
|
|
|
373
|
-
|
|
373
|
+
### Minimum
|
|
374
374
|
`0`
|
|
375
375
|
|
|
376
376
|
|
|
377
|
-
|
|
377
|
+
### Expression
|
|
378
378
|
|
|
379
379
|
Parameters: `zoom, feature, feature-state`
|
|
380
380
|
___
|
|
381
381
|
|
|
382
|
-
|
|
382
|
+
### Name
|
|
383
383
|
|
|
384
384
|
`lineGapWidthTransition`
|
|
385
385
|
|
|
386
|
-
|
|
386
|
+
### Description
|
|
387
387
|
|
|
388
|
-
The transition affecting any changes to this layer’s lineGapWidth
|
|
388
|
+
The transition affecting any changes to this layer’s lineGapWidth property.
|
|
389
389
|
|
|
390
|
-
|
|
390
|
+
### Type
|
|
391
391
|
|
|
392
392
|
`{ duration, delay }`
|
|
393
393
|
|
|
394
|
-
|
|
394
|
+
### Units
|
|
395
395
|
`milliseconds`
|
|
396
396
|
|
|
397
|
-
|
|
397
|
+
### Default Value
|
|
398
398
|
`{duration: 300, delay: 0}`
|
|
399
399
|
|
|
400
400
|
|
|
401
401
|
___
|
|
402
402
|
|
|
403
|
-
|
|
403
|
+
### lineOffset
|
|
404
404
|
Name: `lineOffset`
|
|
405
405
|
|
|
406
|
-
|
|
406
|
+
### Description
|
|
407
407
|
The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.
|
|
408
408
|
|
|
409
|
-
|
|
409
|
+
### Type
|
|
410
410
|
`number`
|
|
411
|
-
|
|
411
|
+
### Default Value
|
|
412
412
|
`0`
|
|
413
413
|
|
|
414
|
-
|
|
414
|
+
### Units
|
|
415
415
|
`pixels`
|
|
416
416
|
|
|
417
417
|
|
|
418
|
-
|
|
418
|
+
### Expression
|
|
419
419
|
|
|
420
420
|
Parameters: `zoom, feature, feature-state`
|
|
421
421
|
___
|
|
422
422
|
|
|
423
|
-
|
|
423
|
+
### Name
|
|
424
424
|
|
|
425
425
|
`lineOffsetTransition`
|
|
426
426
|
|
|
427
|
-
|
|
427
|
+
### Description
|
|
428
428
|
|
|
429
|
-
The transition affecting any changes to this layer’s lineOffset
|
|
429
|
+
The transition affecting any changes to this layer’s lineOffset property.
|
|
430
430
|
|
|
431
|
-
|
|
431
|
+
### Type
|
|
432
432
|
|
|
433
433
|
`{ duration, delay }`
|
|
434
434
|
|
|
435
|
-
|
|
435
|
+
### Units
|
|
436
436
|
`milliseconds`
|
|
437
437
|
|
|
438
|
-
|
|
438
|
+
### Default Value
|
|
439
439
|
`{duration: 300, delay: 0}`
|
|
440
440
|
|
|
441
441
|
|
|
442
442
|
___
|
|
443
443
|
|
|
444
|
-
|
|
444
|
+
### lineBlur
|
|
445
445
|
Name: `lineBlur`
|
|
446
446
|
|
|
447
|
-
|
|
447
|
+
### Description
|
|
448
448
|
Blur applied to the line, in pixels.
|
|
449
449
|
|
|
450
|
-
|
|
450
|
+
### Type
|
|
451
451
|
`number`
|
|
452
|
-
|
|
452
|
+
### Default Value
|
|
453
453
|
`0`
|
|
454
454
|
|
|
455
|
-
|
|
455
|
+
### Units
|
|
456
456
|
`pixels`
|
|
457
457
|
|
|
458
|
-
|
|
458
|
+
### Minimum
|
|
459
459
|
`0`
|
|
460
460
|
|
|
461
461
|
|
|
462
|
-
|
|
462
|
+
### Expression
|
|
463
463
|
|
|
464
464
|
Parameters: `zoom, feature, feature-state`
|
|
465
465
|
___
|
|
466
466
|
|
|
467
|
-
|
|
467
|
+
### Name
|
|
468
468
|
|
|
469
469
|
`lineBlurTransition`
|
|
470
470
|
|
|
471
|
-
|
|
471
|
+
### Description
|
|
472
472
|
|
|
473
|
-
The transition affecting any changes to this layer’s lineBlur
|
|
473
|
+
The transition affecting any changes to this layer’s lineBlur property.
|
|
474
474
|
|
|
475
|
-
|
|
475
|
+
### Type
|
|
476
476
|
|
|
477
477
|
`{ duration, delay }`
|
|
478
478
|
|
|
479
|
-
|
|
479
|
+
### Units
|
|
480
480
|
`milliseconds`
|
|
481
481
|
|
|
482
|
-
|
|
482
|
+
### Default Value
|
|
483
483
|
`{duration: 300, delay: 0}`
|
|
484
484
|
|
|
485
485
|
|
|
486
486
|
___
|
|
487
487
|
|
|
488
|
-
|
|
488
|
+
### lineDasharray
|
|
489
489
|
Name: `lineDasharray`
|
|
490
490
|
|
|
491
|
-
|
|
491
|
+
### Description
|
|
492
492
|
Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoomDependent expressions will be evaluated only at integer zoom levels.
|
|
493
493
|
|
|
494
|
-
|
|
494
|
+
### Type
|
|
495
495
|
`array<number>`
|
|
496
496
|
|
|
497
|
-
|
|
497
|
+
### Units
|
|
498
498
|
`line widths`
|
|
499
499
|
|
|
500
|
-
|
|
500
|
+
### Minimum
|
|
501
501
|
`0`
|
|
502
502
|
|
|
503
503
|
|
|
504
|
-
|
|
504
|
+
### Disabled By
|
|
505
505
|
`linePattern`
|
|
506
506
|
|
|
507
|
-
|
|
507
|
+
### Expression
|
|
508
508
|
|
|
509
509
|
Parameters: `zoom, feature`
|
|
510
510
|
___
|
|
511
511
|
|
|
512
|
-
|
|
512
|
+
### Name
|
|
513
513
|
|
|
514
514
|
`lineDasharrayTransition`
|
|
515
515
|
|
|
516
|
-
|
|
516
|
+
### Description
|
|
517
517
|
|
|
518
|
-
The transition affecting any changes to this layer’s lineDasharray
|
|
518
|
+
The transition affecting any changes to this layer’s lineDasharray property.
|
|
519
519
|
|
|
520
|
-
|
|
520
|
+
### Type
|
|
521
521
|
|
|
522
522
|
`{ duration, delay }`
|
|
523
523
|
|
|
524
|
-
|
|
524
|
+
### Units
|
|
525
525
|
`milliseconds`
|
|
526
526
|
|
|
527
|
-
|
|
527
|
+
### Default Value
|
|
528
528
|
`{duration: 300, delay: 0}`
|
|
529
529
|
|
|
530
530
|
|
|
531
531
|
___
|
|
532
532
|
|
|
533
|
-
|
|
533
|
+
### linePattern
|
|
534
534
|
Name: `linePattern`
|
|
535
535
|
|
|
536
|
-
|
|
536
|
+
### Description
|
|
537
537
|
Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoomDependent expressions will be evaluated only at integer zoom levels.
|
|
538
538
|
|
|
539
|
-
|
|
539
|
+
### Type
|
|
540
540
|
`resolvedImage`
|
|
541
541
|
|
|
542
542
|
|
|
543
|
-
|
|
543
|
+
### Expression
|
|
544
544
|
|
|
545
545
|
Parameters: `zoom, feature`
|
|
546
546
|
___
|
|
547
547
|
|
|
548
|
-
|
|
548
|
+
### Name
|
|
549
549
|
|
|
550
550
|
`linePatternTransition`
|
|
551
551
|
|
|
552
|
-
|
|
552
|
+
### Description
|
|
553
553
|
|
|
554
|
-
The transition affecting any changes to this layer’s linePattern
|
|
554
|
+
The transition affecting any changes to this layer’s linePattern property.
|
|
555
555
|
|
|
556
|
-
|
|
556
|
+
### Type
|
|
557
557
|
|
|
558
558
|
`{ duration, delay }`
|
|
559
559
|
|
|
560
|
-
|
|
560
|
+
### Units
|
|
561
561
|
`milliseconds`
|
|
562
562
|
|
|
563
|
-
|
|
563
|
+
### Default Value
|
|
564
564
|
`{duration: 300, delay: 0}`
|
|
565
565
|
|
|
566
566
|
|
|
567
567
|
___
|
|
568
568
|
|
|
569
|
-
|
|
569
|
+
### lineGradient
|
|
570
570
|
Name: `lineGradient`
|
|
571
571
|
|
|
572
|
-
|
|
572
|
+
### Description
|
|
573
573
|
Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.
|
|
574
574
|
|
|
575
|
-
|
|
575
|
+
### Type
|
|
576
576
|
`color`
|
|
577
577
|
|
|
578
578
|
|
|
579
|
-
|
|
579
|
+
### Disabled By
|
|
580
580
|
`linePattern`
|
|
581
581
|
|
|
582
|
-
|
|
582
|
+
### Expression
|
|
583
583
|
|
|
584
584
|
Parameters: `line-progress`
|
|
585
585
|
|
|
586
586
|
___
|
|
587
587
|
|
|
588
|
-
|
|
588
|
+
### lineTrimOffset
|
|
589
589
|
Name: `lineTrimOffset`
|
|
590
590
|
|
|
591
|
-
|
|
591
|
+
### Description
|
|
592
592
|
The line part between [trimStart, trimEnd] will be marked as transparent to make a route vanishing effect. The line trimOff offset is based on the whole line range [0.0, 1.0].
|
|
593
593
|
|
|
594
|
-
|
|
594
|
+
### Type
|
|
595
595
|
`array<number>`
|
|
596
|
-
|
|
596
|
+
### Default Value
|
|
597
597
|
`[0,0]`
|
|
598
598
|
|
|
599
|
-
|
|
599
|
+
### Minimum
|
|
600
600
|
`0,0`
|
|
601
601
|
|
|
602
602
|
|
|
603
|
-
|
|
603
|
+
### Maximum
|
|
604
604
|
`1,1`
|
|
605
605
|
|
|
606
606
|
|