@maplibre/maplibre-react-native 10.0.0-alpha.17 → 10.0.0-alpha.19
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/CHANGELOG.md +9 -0
- package/android/rctmln/build.gradle +4 -4
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/mapview/RCTMLNMapView.java +64 -64
- package/android/rctmln/src/main/java/com/maplibre/rctmln/components/styles/RCTMLNStyleFactory.java +12 -1
- package/docs/FillExtrusionLayer.md +19 -0
- package/docs/RasterLayer.md +1 -1
- package/docs/SymbolLayer.md +7 -5
- package/docs/docs.json +25 -6
- package/ios/RCTMLN/MLNCustomHeaders.m +1 -1
- package/ios/RCTMLN/RCTMLNStyle.h +1 -0
- package/ios/RCTMLN/RCTMLNStyle.m +7 -0
- package/javascript/components/MarkerView.tsx +3 -3
- package/javascript/components/annotations/Annotation.tsx +4 -1
- package/javascript/utils/MaplibreStyles.d.ts +191 -239
- package/javascript/utils/styleMap.ts +1 -0
- package/package.json +3 -3
- package/scripts/autogenHelpers/globals.js +24 -67
- package/scripts/autogenerate.js +12 -5
- package/style-spec/v8.json +1248 -655
|
@@ -132,21 +132,21 @@ export type Value<T, AllowedParameters extends ExpressionParameters[] = []> =
|
|
|
132
132
|
| T
|
|
133
133
|
| Expression;
|
|
134
134
|
|
|
135
|
-
enum VisibilityEnum {
|
|
135
|
+
export enum VisibilityEnum {
|
|
136
136
|
/** The layer is shown. */
|
|
137
137
|
Visible = "visible",
|
|
138
138
|
/** The layer is not shown. */
|
|
139
139
|
None = "none",
|
|
140
140
|
}
|
|
141
141
|
type VisibilityEnumValues = "visible" | "none";
|
|
142
|
-
enum FillTranslateAnchorEnum {
|
|
142
|
+
export enum FillTranslateAnchorEnum {
|
|
143
143
|
/** The fill is translated relative to the map. */
|
|
144
144
|
Map = "map",
|
|
145
145
|
/** The fill is translated relative to the viewport. */
|
|
146
146
|
Viewport = "viewport",
|
|
147
147
|
}
|
|
148
148
|
type FillTranslateAnchorEnumValues = "map" | "viewport";
|
|
149
|
-
enum LineCapEnum {
|
|
149
|
+
export enum LineCapEnum {
|
|
150
150
|
/** A cap with a squared-off end which is drawn to the exact endpoint of the line. */
|
|
151
151
|
Butt = "butt",
|
|
152
152
|
/** 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. */
|
|
@@ -155,7 +155,7 @@ enum LineCapEnum {
|
|
|
155
155
|
Square = "square",
|
|
156
156
|
}
|
|
157
157
|
type LineCapEnumValues = "butt" | "round" | "square";
|
|
158
|
-
enum LineJoinEnum {
|
|
158
|
+
export enum LineJoinEnum {
|
|
159
159
|
/** 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. */
|
|
160
160
|
Bevel = "bevel",
|
|
161
161
|
/** 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. */
|
|
@@ -164,14 +164,14 @@ enum LineJoinEnum {
|
|
|
164
164
|
Miter = "miter",
|
|
165
165
|
}
|
|
166
166
|
type LineJoinEnumValues = "bevel" | "round" | "miter";
|
|
167
|
-
enum LineTranslateAnchorEnum {
|
|
167
|
+
export enum LineTranslateAnchorEnum {
|
|
168
168
|
/** The line is translated relative to the map. */
|
|
169
169
|
Map = "map",
|
|
170
170
|
/** The line is translated relative to the viewport. */
|
|
171
171
|
Viewport = "viewport",
|
|
172
172
|
}
|
|
173
173
|
type LineTranslateAnchorEnumValues = "map" | "viewport";
|
|
174
|
-
enum SymbolPlacementEnum {
|
|
174
|
+
export enum SymbolPlacementEnum {
|
|
175
175
|
/** The label is placed at the point where the geometry is located. */
|
|
176
176
|
Point = "point",
|
|
177
177
|
/** The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. */
|
|
@@ -180,7 +180,7 @@ enum SymbolPlacementEnum {
|
|
|
180
180
|
LineCenter = "line-center",
|
|
181
181
|
}
|
|
182
182
|
type SymbolPlacementEnumValues = "point" | "line" | "line-center";
|
|
183
|
-
enum SymbolZOrderEnum {
|
|
183
|
+
export enum SymbolZOrderEnum {
|
|
184
184
|
/** Sorts symbols by `symbol-sort-key` if set. Otherwise, sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`. */
|
|
185
185
|
Auto = "auto",
|
|
186
186
|
/** Sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`. */
|
|
@@ -189,7 +189,7 @@ enum SymbolZOrderEnum {
|
|
|
189
189
|
Source = "source",
|
|
190
190
|
}
|
|
191
191
|
type SymbolZOrderEnumValues = "auto" | "viewport-y" | "source";
|
|
192
|
-
enum IconRotationAlignmentEnum {
|
|
192
|
+
export enum IconRotationAlignmentEnum {
|
|
193
193
|
/** When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line. */
|
|
194
194
|
Map = "map",
|
|
195
195
|
/** Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`. */
|
|
@@ -198,7 +198,7 @@ enum IconRotationAlignmentEnum {
|
|
|
198
198
|
Auto = "auto",
|
|
199
199
|
}
|
|
200
200
|
type IconRotationAlignmentEnumValues = "map" | "viewport" | "auto";
|
|
201
|
-
enum IconTextFitEnum {
|
|
201
|
+
export enum IconTextFitEnum {
|
|
202
202
|
/** The icon is displayed at its intrinsic aspect ratio. */
|
|
203
203
|
None = "none",
|
|
204
204
|
/** The icon is scaled in the x-dimension to fit the width of the text. */
|
|
@@ -209,7 +209,7 @@ enum IconTextFitEnum {
|
|
|
209
209
|
Both = "both",
|
|
210
210
|
}
|
|
211
211
|
type IconTextFitEnumValues = "none" | "width" | "height" | "both";
|
|
212
|
-
enum IconAnchorEnum {
|
|
212
|
+
export enum IconAnchorEnum {
|
|
213
213
|
/** The center of the icon is placed closest to the anchor. */
|
|
214
214
|
Center = "center",
|
|
215
215
|
/** The left side of the icon is placed closest to the anchor. */
|
|
@@ -239,7 +239,7 @@ type IconAnchorEnumValues =
|
|
|
239
239
|
| "top-right"
|
|
240
240
|
| "bottom-left"
|
|
241
241
|
| "bottom-right";
|
|
242
|
-
enum IconPitchAlignmentEnum {
|
|
242
|
+
export enum IconPitchAlignmentEnum {
|
|
243
243
|
/** The icon is aligned to the plane of the map. */
|
|
244
244
|
Map = "map",
|
|
245
245
|
/** The icon is aligned to the plane of the viewport. */
|
|
@@ -248,7 +248,7 @@ enum IconPitchAlignmentEnum {
|
|
|
248
248
|
Auto = "auto",
|
|
249
249
|
}
|
|
250
250
|
type IconPitchAlignmentEnumValues = "map" | "viewport" | "auto";
|
|
251
|
-
enum TextPitchAlignmentEnum {
|
|
251
|
+
export enum TextPitchAlignmentEnum {
|
|
252
252
|
/** The text is aligned to the plane of the map. */
|
|
253
253
|
Map = "map",
|
|
254
254
|
/** The text is aligned to the plane of the viewport. */
|
|
@@ -257,7 +257,7 @@ enum TextPitchAlignmentEnum {
|
|
|
257
257
|
Auto = "auto",
|
|
258
258
|
}
|
|
259
259
|
type TextPitchAlignmentEnumValues = "map" | "viewport" | "auto";
|
|
260
|
-
enum TextRotationAlignmentEnum {
|
|
260
|
+
export enum TextRotationAlignmentEnum {
|
|
261
261
|
/** When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line. */
|
|
262
262
|
Map = "map",
|
|
263
263
|
/** Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`. */
|
|
@@ -272,7 +272,7 @@ type TextRotationAlignmentEnumValues =
|
|
|
272
272
|
| "viewport"
|
|
273
273
|
| "viewport-glyph"
|
|
274
274
|
| "auto";
|
|
275
|
-
enum TextJustifyEnum {
|
|
275
|
+
export enum TextJustifyEnum {
|
|
276
276
|
/** The text is aligned towards the anchor position. */
|
|
277
277
|
Auto = "auto",
|
|
278
278
|
/** The text is aligned to the left. */
|
|
@@ -283,7 +283,7 @@ enum TextJustifyEnum {
|
|
|
283
283
|
Right = "right",
|
|
284
284
|
}
|
|
285
285
|
type TextJustifyEnumValues = "auto" | "left" | "center" | "right";
|
|
286
|
-
enum TextVariableAnchorEnum {
|
|
286
|
+
export enum TextVariableAnchorEnum {
|
|
287
287
|
/** The center of the text is placed closest to the anchor. */
|
|
288
288
|
Center = "center",
|
|
289
289
|
/** The left side of the text is placed closest to the anchor. */
|
|
@@ -313,7 +313,7 @@ type TextVariableAnchorEnumValues =
|
|
|
313
313
|
| "top-right"
|
|
314
314
|
| "bottom-left"
|
|
315
315
|
| "bottom-right";
|
|
316
|
-
enum TextAnchorEnum {
|
|
316
|
+
export enum TextAnchorEnum {
|
|
317
317
|
/** The center of the text is placed closest to the anchor. */
|
|
318
318
|
Center = "center",
|
|
319
319
|
/** The left side of the text is placed closest to the anchor. */
|
|
@@ -343,14 +343,14 @@ type TextAnchorEnumValues =
|
|
|
343
343
|
| "top-right"
|
|
344
344
|
| "bottom-left"
|
|
345
345
|
| "bottom-right";
|
|
346
|
-
enum TextWritingModeEnum {
|
|
346
|
+
export enum TextWritingModeEnum {
|
|
347
347
|
/** If a text's language supports horizontal writing mode, symbols with point placement would be laid out horizontally. */
|
|
348
348
|
Horizontal = "horizontal",
|
|
349
349
|
/** If a text's language supports vertical writing mode, symbols with point placement would be laid out vertically. */
|
|
350
350
|
Vertical = "vertical",
|
|
351
351
|
}
|
|
352
352
|
type TextWritingModeEnumValues = "horizontal" | "vertical";
|
|
353
|
-
enum TextTransformEnum {
|
|
353
|
+
export enum TextTransformEnum {
|
|
354
354
|
/** The text is not altered. */
|
|
355
355
|
None = "none",
|
|
356
356
|
/** Forces all letters to be displayed in uppercase. */
|
|
@@ -359,63 +359,63 @@ enum TextTransformEnum {
|
|
|
359
359
|
Lowercase = "lowercase",
|
|
360
360
|
}
|
|
361
361
|
type TextTransformEnumValues = "none" | "uppercase" | "lowercase";
|
|
362
|
-
enum IconTranslateAnchorEnum {
|
|
362
|
+
export enum IconTranslateAnchorEnum {
|
|
363
363
|
/** Icons are translated relative to the map. */
|
|
364
364
|
Map = "map",
|
|
365
365
|
/** Icons are translated relative to the viewport. */
|
|
366
366
|
Viewport = "viewport",
|
|
367
367
|
}
|
|
368
368
|
type IconTranslateAnchorEnumValues = "map" | "viewport";
|
|
369
|
-
enum TextTranslateAnchorEnum {
|
|
369
|
+
export enum TextTranslateAnchorEnum {
|
|
370
370
|
/** The text is translated relative to the map. */
|
|
371
371
|
Map = "map",
|
|
372
372
|
/** The text is translated relative to the viewport. */
|
|
373
373
|
Viewport = "viewport",
|
|
374
374
|
}
|
|
375
375
|
type TextTranslateAnchorEnumValues = "map" | "viewport";
|
|
376
|
-
enum CircleTranslateAnchorEnum {
|
|
376
|
+
export enum CircleTranslateAnchorEnum {
|
|
377
377
|
/** The circle is translated relative to the map. */
|
|
378
378
|
Map = "map",
|
|
379
379
|
/** The circle is translated relative to the viewport. */
|
|
380
380
|
Viewport = "viewport",
|
|
381
381
|
}
|
|
382
382
|
type CircleTranslateAnchorEnumValues = "map" | "viewport";
|
|
383
|
-
enum CirclePitchScaleEnum {
|
|
383
|
+
export enum CirclePitchScaleEnum {
|
|
384
384
|
/** Circles are scaled according to their apparent distance to the camera. */
|
|
385
385
|
Map = "map",
|
|
386
386
|
/** Circles are not scaled. */
|
|
387
387
|
Viewport = "viewport",
|
|
388
388
|
}
|
|
389
389
|
type CirclePitchScaleEnumValues = "map" | "viewport";
|
|
390
|
-
enum CirclePitchAlignmentEnum {
|
|
390
|
+
export enum CirclePitchAlignmentEnum {
|
|
391
391
|
/** The circle is aligned to the plane of the map. */
|
|
392
392
|
Map = "map",
|
|
393
393
|
/** The circle is aligned to the plane of the viewport. */
|
|
394
394
|
Viewport = "viewport",
|
|
395
395
|
}
|
|
396
396
|
type CirclePitchAlignmentEnumValues = "map" | "viewport";
|
|
397
|
-
enum FillExtrusionTranslateAnchorEnum {
|
|
397
|
+
export enum FillExtrusionTranslateAnchorEnum {
|
|
398
398
|
/** The fill extrusion is translated relative to the map. */
|
|
399
399
|
Map = "map",
|
|
400
400
|
/** The fill extrusion is translated relative to the viewport. */
|
|
401
401
|
Viewport = "viewport",
|
|
402
402
|
}
|
|
403
403
|
type FillExtrusionTranslateAnchorEnumValues = "map" | "viewport";
|
|
404
|
-
enum RasterResamplingEnum {
|
|
404
|
+
export enum RasterResamplingEnum {
|
|
405
405
|
/** (Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled */
|
|
406
406
|
Linear = "linear",
|
|
407
407
|
/** Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled */
|
|
408
408
|
Nearest = "nearest",
|
|
409
409
|
}
|
|
410
410
|
type RasterResamplingEnumValues = "linear" | "nearest";
|
|
411
|
-
enum HillshadeIlluminationAnchorEnum {
|
|
411
|
+
export enum HillshadeIlluminationAnchorEnum {
|
|
412
412
|
/** The hillshade illumination is relative to the north direction. */
|
|
413
413
|
Map = "map",
|
|
414
414
|
/** The hillshade illumination is relative to the top of the viewport. */
|
|
415
415
|
Viewport = "viewport",
|
|
416
416
|
}
|
|
417
417
|
type HillshadeIlluminationAnchorEnumValues = "map" | "viewport";
|
|
418
|
-
enum AnchorEnum {
|
|
418
|
+
export enum AnchorEnum {
|
|
419
419
|
/** The position of the light source is aligned to the rotation of the map. */
|
|
420
420
|
Map = "map",
|
|
421
421
|
/** The position of the light source is aligned to the rotation of the viewport. */
|
|
@@ -429,19 +429,19 @@ export interface FillLayerStyleProps {
|
|
|
429
429
|
/**
|
|
430
430
|
* Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
|
|
431
431
|
*/
|
|
432
|
-
fillSortKey?:
|
|
432
|
+
fillSortKey?: number;
|
|
433
433
|
/**
|
|
434
434
|
* Whether this layer is displayed.
|
|
435
435
|
*/
|
|
436
|
-
visibility?:
|
|
436
|
+
visibility?: "visible" | "none";
|
|
437
437
|
/**
|
|
438
438
|
* Whether or not the fill should be antialiased.
|
|
439
439
|
*/
|
|
440
|
-
fillAntialias?:
|
|
440
|
+
fillAntialias?: boolean;
|
|
441
441
|
/**
|
|
442
442
|
* 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.
|
|
443
443
|
*/
|
|
444
|
-
fillOpacity?:
|
|
444
|
+
fillOpacity?: number;
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* The transition affecting any changes to this layer’s fillOpacity property.
|
|
@@ -452,7 +452,7 @@ export interface FillLayerStyleProps {
|
|
|
452
452
|
*
|
|
453
453
|
* @disabledBy fillPattern
|
|
454
454
|
*/
|
|
455
|
-
fillColor?:
|
|
455
|
+
fillColor?: string;
|
|
456
456
|
|
|
457
457
|
/**
|
|
458
458
|
* The transition affecting any changes to this layer’s fillColor property.
|
|
@@ -463,7 +463,7 @@ export interface FillLayerStyleProps {
|
|
|
463
463
|
*
|
|
464
464
|
* @disabledBy fillPattern
|
|
465
465
|
*/
|
|
466
|
-
fillOutlineColor?:
|
|
466
|
+
fillOutlineColor?: string;
|
|
467
467
|
|
|
468
468
|
/**
|
|
469
469
|
* The transition affecting any changes to this layer’s fillOutlineColor property.
|
|
@@ -472,7 +472,7 @@ export interface FillLayerStyleProps {
|
|
|
472
472
|
/**
|
|
473
473
|
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
|
|
474
474
|
*/
|
|
475
|
-
fillTranslate?:
|
|
475
|
+
fillTranslate?: any[];
|
|
476
476
|
|
|
477
477
|
/**
|
|
478
478
|
* The transition affecting any changes to this layer’s fillTranslate property.
|
|
@@ -483,14 +483,11 @@ export interface FillLayerStyleProps {
|
|
|
483
483
|
*
|
|
484
484
|
* @requires fillTranslate
|
|
485
485
|
*/
|
|
486
|
-
fillTranslateAnchor?:
|
|
487
|
-
Enum<FillTranslateAnchorEnum, FillTranslateAnchorEnumValues>,
|
|
488
|
-
["zoom"]
|
|
489
|
-
>;
|
|
486
|
+
fillTranslateAnchor?: "map" | "viewport";
|
|
490
487
|
/**
|
|
491
488
|
* 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.
|
|
492
489
|
*/
|
|
493
|
-
fillPattern?:
|
|
490
|
+
fillPattern?: string;
|
|
494
491
|
|
|
495
492
|
/**
|
|
496
493
|
* The transition affecting any changes to this layer’s fillPattern property.
|
|
@@ -501,31 +498,31 @@ export interface LineLayerStyleProps {
|
|
|
501
498
|
/**
|
|
502
499
|
* The display of line endings.
|
|
503
500
|
*/
|
|
504
|
-
lineCap?:
|
|
501
|
+
lineCap?: "butt" | "round" | "square";
|
|
505
502
|
/**
|
|
506
503
|
* The display of lines when joining.
|
|
507
504
|
*/
|
|
508
|
-
lineJoin?:
|
|
505
|
+
lineJoin?: "bevel" | "round" | "miter";
|
|
509
506
|
/**
|
|
510
507
|
* Used to automatically convert miter joins to bevel joins for sharp angles.
|
|
511
508
|
*/
|
|
512
|
-
lineMiterLimit?:
|
|
509
|
+
lineMiterLimit?: number;
|
|
513
510
|
/**
|
|
514
511
|
* Used to automatically convert round joins to miter joins for shallow angles.
|
|
515
512
|
*/
|
|
516
|
-
lineRoundLimit?:
|
|
513
|
+
lineRoundLimit?: number;
|
|
517
514
|
/**
|
|
518
515
|
* Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
|
|
519
516
|
*/
|
|
520
|
-
lineSortKey?:
|
|
517
|
+
lineSortKey?: number;
|
|
521
518
|
/**
|
|
522
519
|
* Whether this layer is displayed.
|
|
523
520
|
*/
|
|
524
|
-
visibility?:
|
|
521
|
+
visibility?: "visible" | "none";
|
|
525
522
|
/**
|
|
526
523
|
* The opacity at which the line will be drawn.
|
|
527
524
|
*/
|
|
528
|
-
lineOpacity?:
|
|
525
|
+
lineOpacity?: number;
|
|
529
526
|
|
|
530
527
|
/**
|
|
531
528
|
* The transition affecting any changes to this layer’s lineOpacity property.
|
|
@@ -536,7 +533,7 @@ export interface LineLayerStyleProps {
|
|
|
536
533
|
*
|
|
537
534
|
* @disabledBy linePattern
|
|
538
535
|
*/
|
|
539
|
-
lineColor?:
|
|
536
|
+
lineColor?: string;
|
|
540
537
|
|
|
541
538
|
/**
|
|
542
539
|
* The transition affecting any changes to this layer’s lineColor property.
|
|
@@ -545,7 +542,7 @@ export interface LineLayerStyleProps {
|
|
|
545
542
|
/**
|
|
546
543
|
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
|
|
547
544
|
*/
|
|
548
|
-
lineTranslate?:
|
|
545
|
+
lineTranslate?: any[];
|
|
549
546
|
|
|
550
547
|
/**
|
|
551
548
|
* The transition affecting any changes to this layer’s lineTranslate property.
|
|
@@ -556,14 +553,11 @@ export interface LineLayerStyleProps {
|
|
|
556
553
|
*
|
|
557
554
|
* @requires lineTranslate
|
|
558
555
|
*/
|
|
559
|
-
lineTranslateAnchor?:
|
|
560
|
-
Enum<LineTranslateAnchorEnum, LineTranslateAnchorEnumValues>,
|
|
561
|
-
["zoom"]
|
|
562
|
-
>;
|
|
556
|
+
lineTranslateAnchor?: "map" | "viewport";
|
|
563
557
|
/**
|
|
564
558
|
* Stroke thickness.
|
|
565
559
|
*/
|
|
566
|
-
lineWidth?:
|
|
560
|
+
lineWidth?: number;
|
|
567
561
|
|
|
568
562
|
/**
|
|
569
563
|
* The transition affecting any changes to this layer’s lineWidth property.
|
|
@@ -572,7 +566,7 @@ export interface LineLayerStyleProps {
|
|
|
572
566
|
/**
|
|
573
567
|
* Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
|
|
574
568
|
*/
|
|
575
|
-
lineGapWidth?:
|
|
569
|
+
lineGapWidth?: number;
|
|
576
570
|
|
|
577
571
|
/**
|
|
578
572
|
* The transition affecting any changes to this layer’s lineGapWidth property.
|
|
@@ -581,7 +575,7 @@ export interface LineLayerStyleProps {
|
|
|
581
575
|
/**
|
|
582
576
|
* 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.
|
|
583
577
|
*/
|
|
584
|
-
lineOffset?:
|
|
578
|
+
lineOffset?: number;
|
|
585
579
|
|
|
586
580
|
/**
|
|
587
581
|
* The transition affecting any changes to this layer’s lineOffset property.
|
|
@@ -590,7 +584,7 @@ export interface LineLayerStyleProps {
|
|
|
590
584
|
/**
|
|
591
585
|
* Blur applied to the line, in pixels.
|
|
592
586
|
*/
|
|
593
|
-
lineBlur?:
|
|
587
|
+
lineBlur?: number;
|
|
594
588
|
|
|
595
589
|
/**
|
|
596
590
|
* The transition affecting any changes to this layer’s lineBlur property.
|
|
@@ -601,7 +595,7 @@ export interface LineLayerStyleProps {
|
|
|
601
595
|
*
|
|
602
596
|
* @disabledBy linePattern
|
|
603
597
|
*/
|
|
604
|
-
lineDasharray?:
|
|
598
|
+
lineDasharray?: any[];
|
|
605
599
|
|
|
606
600
|
/**
|
|
607
601
|
* The transition affecting any changes to this layer’s lineDasharray property.
|
|
@@ -610,7 +604,7 @@ export interface LineLayerStyleProps {
|
|
|
610
604
|
/**
|
|
611
605
|
* 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.
|
|
612
606
|
*/
|
|
613
|
-
linePattern?:
|
|
607
|
+
linePattern?: string;
|
|
614
608
|
|
|
615
609
|
/**
|
|
616
610
|
* The transition affecting any changes to this layer’s linePattern property.
|
|
@@ -621,35 +615,29 @@ export interface LineLayerStyleProps {
|
|
|
621
615
|
*
|
|
622
616
|
* @disabledBy lineDasharray, linePattern
|
|
623
617
|
*/
|
|
624
|
-
lineGradient?:
|
|
618
|
+
lineGradient?: string;
|
|
625
619
|
}
|
|
626
620
|
export interface SymbolLayerStyleProps {
|
|
627
621
|
/**
|
|
628
622
|
* Label placement relative to its geometry.
|
|
629
623
|
*/
|
|
630
|
-
symbolPlacement?:
|
|
631
|
-
Enum<SymbolPlacementEnum, SymbolPlacementEnumValues>,
|
|
632
|
-
["zoom"]
|
|
633
|
-
>;
|
|
624
|
+
symbolPlacement?: "point" | "line" | "line-center";
|
|
634
625
|
/**
|
|
635
626
|
* Distance between two symbol anchors.
|
|
636
627
|
*/
|
|
637
|
-
symbolSpacing?:
|
|
628
|
+
symbolSpacing?: number;
|
|
638
629
|
/**
|
|
639
630
|
* If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like MapLibre GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.
|
|
640
631
|
*/
|
|
641
|
-
symbolAvoidEdges?:
|
|
632
|
+
symbolAvoidEdges?: boolean;
|
|
642
633
|
/**
|
|
643
634
|
* Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `iconAllowOverlap` or `textAllowOverlap` is `false`, features with a lower sort key will have priority during placement. When `iconAllowOverlap` or `textAllowOverlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.
|
|
644
635
|
*/
|
|
645
|
-
symbolSortKey?:
|
|
636
|
+
symbolSortKey?: number;
|
|
646
637
|
/**
|
|
647
638
|
* Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their yPosition relative to the viewport. To control the order and prioritization of symbols otherwise, use `symbolSortKey`.
|
|
648
639
|
*/
|
|
649
|
-
symbolZOrder?:
|
|
650
|
-
Enum<SymbolZOrderEnum, SymbolZOrderEnumValues>,
|
|
651
|
-
["zoom"]
|
|
652
|
-
>;
|
|
640
|
+
symbolZOrder?: "auto" | "viewport-y" | "source";
|
|
653
641
|
/**
|
|
654
642
|
* If true, the icon will be visible even if it collides with other previously drawn symbols.
|
|
655
643
|
*
|
|
@@ -657,168 +645,156 @@ export interface SymbolLayerStyleProps {
|
|
|
657
645
|
*
|
|
658
646
|
* @disabledBy iconOverlap
|
|
659
647
|
*/
|
|
660
|
-
iconAllowOverlap?:
|
|
648
|
+
iconAllowOverlap?: boolean;
|
|
661
649
|
/**
|
|
662
650
|
* If true, other symbols can be visible even if they collide with the icon.
|
|
663
651
|
*
|
|
664
652
|
* @requires iconImage
|
|
665
653
|
*/
|
|
666
|
-
iconIgnorePlacement?:
|
|
654
|
+
iconIgnorePlacement?: boolean;
|
|
667
655
|
/**
|
|
668
656
|
* If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.
|
|
669
657
|
*
|
|
670
658
|
* @requires iconImage, textField
|
|
671
659
|
*/
|
|
672
|
-
iconOptional?:
|
|
660
|
+
iconOptional?: boolean;
|
|
673
661
|
/**
|
|
674
662
|
* In combination with `symbolPlacement`, determines the rotation behavior of icons.
|
|
675
663
|
*
|
|
676
664
|
* @requires iconImage
|
|
677
665
|
*/
|
|
678
|
-
iconRotationAlignment?:
|
|
679
|
-
Enum<IconRotationAlignmentEnum, IconRotationAlignmentEnumValues>,
|
|
680
|
-
["zoom"]
|
|
681
|
-
>;
|
|
666
|
+
iconRotationAlignment?: "map" | "viewport" | "auto";
|
|
682
667
|
/**
|
|
683
668
|
* Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `iconSize`. 1 is the original size; 3 triples the size of the image.
|
|
684
669
|
*
|
|
685
670
|
* @requires iconImage
|
|
686
671
|
*/
|
|
687
|
-
iconSize?:
|
|
672
|
+
iconSize?: number;
|
|
688
673
|
/**
|
|
689
674
|
* Scales the icon to fit around the associated text.
|
|
690
675
|
*
|
|
691
676
|
* @requires iconImage, textField
|
|
692
677
|
*/
|
|
693
|
-
iconTextFit?:
|
|
678
|
+
iconTextFit?: "none" | "width" | "height" | "both";
|
|
694
679
|
/**
|
|
695
680
|
* Size of the additional area added to dimensions determined by `iconTextFit`, in clockwise order: top, right, bottom, left.
|
|
696
681
|
*
|
|
697
682
|
* @requires iconImage, textField
|
|
698
683
|
*/
|
|
699
|
-
iconTextFitPadding?:
|
|
684
|
+
iconTextFitPadding?: any[];
|
|
700
685
|
/**
|
|
701
686
|
* Name of image in sprite to use for drawing an image background.
|
|
702
687
|
*/
|
|
703
|
-
iconImage?:
|
|
688
|
+
iconImage?: string;
|
|
704
689
|
/**
|
|
705
690
|
* Rotates the icon clockwise.
|
|
706
691
|
*
|
|
707
692
|
* @requires iconImage
|
|
708
693
|
*/
|
|
709
|
-
iconRotate?:
|
|
694
|
+
iconRotate?: number;
|
|
710
695
|
/**
|
|
711
|
-
* Size of additional area round the icon bounding box used for detecting symbol collisions.
|
|
696
|
+
* Size of additional area round the icon bounding box used for detecting symbol collisions.
|
|
712
697
|
*
|
|
713
698
|
* @requires iconImage
|
|
714
699
|
*/
|
|
715
|
-
iconPadding?:
|
|
700
|
+
iconPadding?: any[];
|
|
716
701
|
/**
|
|
717
702
|
* If true, the icon may be flipped to prevent it from being rendered upsideDown.
|
|
718
703
|
*
|
|
719
704
|
* @requires iconImage
|
|
720
705
|
*/
|
|
721
|
-
iconKeepUpright?:
|
|
706
|
+
iconKeepUpright?: boolean;
|
|
722
707
|
/**
|
|
723
708
|
* Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `iconSize` to obtain the final offset in pixels. When combined with `iconRotate` the offset will be as if the rotated direction was up.
|
|
724
709
|
*
|
|
725
710
|
* @requires iconImage
|
|
726
711
|
*/
|
|
727
|
-
iconOffset?:
|
|
712
|
+
iconOffset?: any[];
|
|
728
713
|
/**
|
|
729
714
|
* Part of the icon placed closest to the anchor.
|
|
730
715
|
*
|
|
731
716
|
* @requires iconImage
|
|
732
717
|
*/
|
|
733
|
-
iconAnchor?:
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
718
|
+
iconAnchor?:
|
|
719
|
+
| "center"
|
|
720
|
+
| "left"
|
|
721
|
+
| "right"
|
|
722
|
+
| "top"
|
|
723
|
+
| "bottom"
|
|
724
|
+
| "top-left"
|
|
725
|
+
| "top-right"
|
|
726
|
+
| "bottom-left"
|
|
727
|
+
| "bottom-right";
|
|
737
728
|
/**
|
|
738
729
|
* Orientation of icon when map is pitched.
|
|
739
730
|
*
|
|
740
731
|
* @requires iconImage
|
|
741
732
|
*/
|
|
742
|
-
iconPitchAlignment?:
|
|
743
|
-
Enum<IconPitchAlignmentEnum, IconPitchAlignmentEnumValues>,
|
|
744
|
-
["zoom"]
|
|
745
|
-
>;
|
|
733
|
+
iconPitchAlignment?: "map" | "viewport" | "auto";
|
|
746
734
|
/**
|
|
747
735
|
* Orientation of text when map is pitched.
|
|
748
736
|
*
|
|
749
737
|
* @requires textField
|
|
750
738
|
*/
|
|
751
|
-
textPitchAlignment?:
|
|
752
|
-
Enum<TextPitchAlignmentEnum, TextPitchAlignmentEnumValues>,
|
|
753
|
-
["zoom"]
|
|
754
|
-
>;
|
|
739
|
+
textPitchAlignment?: "map" | "viewport" | "auto";
|
|
755
740
|
/**
|
|
756
741
|
* In combination with `symbolPlacement`, determines the rotation behavior of the individual glyphs forming the text.
|
|
757
742
|
*
|
|
758
743
|
* @requires textField
|
|
759
744
|
*/
|
|
760
|
-
textRotationAlignment?:
|
|
761
|
-
Enum<TextRotationAlignmentEnum, TextRotationAlignmentEnumValues>,
|
|
762
|
-
["zoom"]
|
|
763
|
-
>;
|
|
745
|
+
textRotationAlignment?: "map" | "viewport" | "viewport-glyph" | "auto";
|
|
764
746
|
/**
|
|
765
747
|
* Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.
|
|
766
748
|
*/
|
|
767
|
-
textField?:
|
|
749
|
+
textField?: string;
|
|
768
750
|
/**
|
|
769
751
|
* Font stack to use for displaying text.
|
|
770
752
|
*
|
|
771
753
|
* @requires textField
|
|
772
754
|
*/
|
|
773
|
-
textFont?:
|
|
755
|
+
textFont?: any[];
|
|
774
756
|
/**
|
|
775
757
|
* Font size.
|
|
776
758
|
*
|
|
777
759
|
* @requires textField
|
|
778
760
|
*/
|
|
779
|
-
textSize?:
|
|
761
|
+
textSize?: number;
|
|
780
762
|
/**
|
|
781
763
|
* The maximum line width for text wrapping.
|
|
782
764
|
*
|
|
783
765
|
* @requires textField
|
|
784
766
|
*/
|
|
785
|
-
textMaxWidth?:
|
|
767
|
+
textMaxWidth?: number;
|
|
786
768
|
/**
|
|
787
769
|
* Text leading value for multiLine text.
|
|
788
770
|
*
|
|
789
771
|
* @requires textField
|
|
790
772
|
*/
|
|
791
|
-
textLineHeight?:
|
|
773
|
+
textLineHeight?: number;
|
|
792
774
|
/**
|
|
793
775
|
* Text tracking amount.
|
|
794
776
|
*
|
|
795
777
|
* @requires textField
|
|
796
778
|
*/
|
|
797
|
-
textLetterSpacing?:
|
|
779
|
+
textLetterSpacing?: number;
|
|
798
780
|
/**
|
|
799
781
|
* Text justification options.
|
|
800
782
|
*
|
|
801
783
|
* @requires textField
|
|
802
784
|
*/
|
|
803
|
-
textJustify?:
|
|
804
|
-
Enum<TextJustifyEnum, TextJustifyEnumValues>,
|
|
805
|
-
["zoom", "feature"]
|
|
806
|
-
>;
|
|
785
|
+
textJustify?: "auto" | "left" | "center" | "right";
|
|
807
786
|
/**
|
|
808
787
|
* Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `textVariableAnchor`, which defaults to using the twoDimensional `textOffset` if present.
|
|
809
788
|
*
|
|
810
789
|
* @requires textField
|
|
811
790
|
*/
|
|
812
|
-
textRadialOffset?:
|
|
791
|
+
textRadialOffset?: number;
|
|
813
792
|
/**
|
|
814
793
|
* To increase the chance of placing highPriority labels on the map, you can provide an array of `textAnchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `textJustify: auto` to choose justification based on anchor position. To apply an offset, use the `textRadialOffset` or the twoDimensional `textOffset`.
|
|
815
794
|
*
|
|
816
795
|
* @requires textField
|
|
817
796
|
*/
|
|
818
|
-
textVariableAnchor?:
|
|
819
|
-
Enum<TextVariableAnchorEnum, TextVariableAnchorEnumValues>[],
|
|
820
|
-
["zoom"]
|
|
821
|
-
>;
|
|
797
|
+
textVariableAnchor?: any[];
|
|
822
798
|
/**
|
|
823
799
|
* Part of the text placed closest to the anchor.
|
|
824
800
|
*
|
|
@@ -826,52 +802,52 @@ export interface SymbolLayerStyleProps {
|
|
|
826
802
|
*
|
|
827
803
|
* @disabledBy textVariableAnchor
|
|
828
804
|
*/
|
|
829
|
-
textAnchor?:
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
805
|
+
textAnchor?:
|
|
806
|
+
| "center"
|
|
807
|
+
| "left"
|
|
808
|
+
| "right"
|
|
809
|
+
| "top"
|
|
810
|
+
| "bottom"
|
|
811
|
+
| "top-left"
|
|
812
|
+
| "top-right"
|
|
813
|
+
| "bottom-left"
|
|
814
|
+
| "bottom-right";
|
|
833
815
|
/**
|
|
834
816
|
* Maximum angle change between adjacent characters.
|
|
835
817
|
*
|
|
836
818
|
* @requires textField
|
|
837
819
|
*/
|
|
838
|
-
textMaxAngle?:
|
|
820
|
+
textMaxAngle?: number;
|
|
839
821
|
/**
|
|
840
822
|
* The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.
|
|
841
823
|
*
|
|
842
824
|
* @requires textField
|
|
843
825
|
*/
|
|
844
|
-
textWritingMode?:
|
|
845
|
-
Enum<TextWritingModeEnum, TextWritingModeEnumValues>[],
|
|
846
|
-
["zoom"]
|
|
847
|
-
>;
|
|
826
|
+
textWritingMode?: any[];
|
|
848
827
|
/**
|
|
849
828
|
* Rotates the text clockwise.
|
|
850
829
|
*
|
|
851
830
|
* @requires textField
|
|
852
831
|
*/
|
|
853
|
-
textRotate?:
|
|
832
|
+
textRotate?: number;
|
|
854
833
|
/**
|
|
855
834
|
* Size of the additional area around the text bounding box used for detecting symbol collisions.
|
|
856
835
|
*
|
|
857
836
|
* @requires textField
|
|
858
837
|
*/
|
|
859
|
-
textPadding?:
|
|
838
|
+
textPadding?: number;
|
|
860
839
|
/**
|
|
861
840
|
* If true, the text may be flipped vertically to prevent it from being rendered upsideDown.
|
|
862
841
|
*
|
|
863
842
|
* @requires textField
|
|
864
843
|
*/
|
|
865
|
-
textKeepUpright?:
|
|
844
|
+
textKeepUpright?: boolean;
|
|
866
845
|
/**
|
|
867
846
|
* Specifies how to capitalize text, similar to the CSS `textTransform` property.
|
|
868
847
|
*
|
|
869
848
|
* @requires textField
|
|
870
849
|
*/
|
|
871
|
-
textTransform?:
|
|
872
|
-
Enum<TextTransformEnum, TextTransformEnumValues>,
|
|
873
|
-
["zoom", "feature"]
|
|
874
|
-
>;
|
|
850
|
+
textTransform?: "none" | "uppercase" | "lowercase";
|
|
875
851
|
/**
|
|
876
852
|
* Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with textVariableAnchor, input values will be taken as absolute values. Offsets along the x and yAxis will be applied automatically based on the anchor position.
|
|
877
853
|
*
|
|
@@ -879,7 +855,7 @@ export interface SymbolLayerStyleProps {
|
|
|
879
855
|
*
|
|
880
856
|
* @disabledBy textRadialOffset
|
|
881
857
|
*/
|
|
882
|
-
textOffset?:
|
|
858
|
+
textOffset?: any[];
|
|
883
859
|
/**
|
|
884
860
|
* If true, the text will be visible even if it collides with other previously drawn symbols.
|
|
885
861
|
*
|
|
@@ -887,40 +863,40 @@ export interface SymbolLayerStyleProps {
|
|
|
887
863
|
*
|
|
888
864
|
* @disabledBy textOverlap
|
|
889
865
|
*/
|
|
890
|
-
textAllowOverlap?:
|
|
866
|
+
textAllowOverlap?: boolean;
|
|
891
867
|
/**
|
|
892
868
|
* If true, other symbols can be visible even if they collide with the text.
|
|
893
869
|
*
|
|
894
870
|
* @requires textField
|
|
895
871
|
*/
|
|
896
|
-
textIgnorePlacement?:
|
|
872
|
+
textIgnorePlacement?: boolean;
|
|
897
873
|
/**
|
|
898
874
|
* If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.
|
|
899
875
|
*
|
|
900
876
|
* @requires textField, iconImage
|
|
901
877
|
*/
|
|
902
|
-
textOptional?:
|
|
878
|
+
textOptional?: boolean;
|
|
903
879
|
/**
|
|
904
880
|
* Whether this layer is displayed.
|
|
905
881
|
*/
|
|
906
|
-
visibility?:
|
|
882
|
+
visibility?: "visible" | "none";
|
|
907
883
|
/**
|
|
908
884
|
* The opacity at which the icon will be drawn.
|
|
909
885
|
*
|
|
910
886
|
* @requires iconImage
|
|
911
887
|
*/
|
|
912
|
-
iconOpacity?:
|
|
888
|
+
iconOpacity?: number;
|
|
913
889
|
|
|
914
890
|
/**
|
|
915
891
|
* The transition affecting any changes to this layer’s iconOpacity property.
|
|
916
892
|
*/
|
|
917
893
|
iconOpacityTransition?: Transition;
|
|
918
894
|
/**
|
|
919
|
-
* The color of the icon. This can only be used with
|
|
895
|
+
* The color of the icon. This can only be used with SDF icons.
|
|
920
896
|
*
|
|
921
897
|
* @requires iconImage
|
|
922
898
|
*/
|
|
923
|
-
iconColor?:
|
|
899
|
+
iconColor?: string;
|
|
924
900
|
|
|
925
901
|
/**
|
|
926
902
|
* The transition affecting any changes to this layer’s iconColor property.
|
|
@@ -931,18 +907,20 @@ export interface SymbolLayerStyleProps {
|
|
|
931
907
|
*
|
|
932
908
|
* @requires iconImage
|
|
933
909
|
*/
|
|
934
|
-
iconHaloColor?:
|
|
910
|
+
iconHaloColor?: string;
|
|
935
911
|
|
|
936
912
|
/**
|
|
937
913
|
* The transition affecting any changes to this layer’s iconHaloColor property.
|
|
938
914
|
*/
|
|
939
915
|
iconHaloColorTransition?: Transition;
|
|
940
916
|
/**
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
917
|
+
* Distance of halo to the icon outline.
|
|
918
|
+
|
|
919
|
+
The unit is in pixels only for SDF sprites that were created with a blur radius of 8, multiplied by the display density. I.e., the radius needs to be 16 for `@2x` sprites, etc.
|
|
920
|
+
*
|
|
921
|
+
* @requires iconImage
|
|
922
|
+
*/
|
|
923
|
+
iconHaloWidth?: number;
|
|
946
924
|
|
|
947
925
|
/**
|
|
948
926
|
* The transition affecting any changes to this layer’s iconHaloWidth property.
|
|
@@ -953,7 +931,7 @@ export interface SymbolLayerStyleProps {
|
|
|
953
931
|
*
|
|
954
932
|
* @requires iconImage
|
|
955
933
|
*/
|
|
956
|
-
iconHaloBlur?:
|
|
934
|
+
iconHaloBlur?: number;
|
|
957
935
|
|
|
958
936
|
/**
|
|
959
937
|
* The transition affecting any changes to this layer’s iconHaloBlur property.
|
|
@@ -964,7 +942,7 @@ export interface SymbolLayerStyleProps {
|
|
|
964
942
|
*
|
|
965
943
|
* @requires iconImage
|
|
966
944
|
*/
|
|
967
|
-
iconTranslate?:
|
|
945
|
+
iconTranslate?: any[];
|
|
968
946
|
|
|
969
947
|
/**
|
|
970
948
|
* The transition affecting any changes to this layer’s iconTranslate property.
|
|
@@ -975,16 +953,13 @@ export interface SymbolLayerStyleProps {
|
|
|
975
953
|
*
|
|
976
954
|
* @requires iconImage, iconTranslate
|
|
977
955
|
*/
|
|
978
|
-
iconTranslateAnchor?:
|
|
979
|
-
Enum<IconTranslateAnchorEnum, IconTranslateAnchorEnumValues>,
|
|
980
|
-
["zoom"]
|
|
981
|
-
>;
|
|
956
|
+
iconTranslateAnchor?: "map" | "viewport";
|
|
982
957
|
/**
|
|
983
958
|
* The opacity at which the text will be drawn.
|
|
984
959
|
*
|
|
985
960
|
* @requires textField
|
|
986
961
|
*/
|
|
987
|
-
textOpacity?:
|
|
962
|
+
textOpacity?: number;
|
|
988
963
|
|
|
989
964
|
/**
|
|
990
965
|
* The transition affecting any changes to this layer’s textOpacity property.
|
|
@@ -995,7 +970,7 @@ export interface SymbolLayerStyleProps {
|
|
|
995
970
|
*
|
|
996
971
|
* @requires textField
|
|
997
972
|
*/
|
|
998
|
-
textColor?:
|
|
973
|
+
textColor?: string;
|
|
999
974
|
|
|
1000
975
|
/**
|
|
1001
976
|
* The transition affecting any changes to this layer’s textColor property.
|
|
@@ -1006,7 +981,7 @@ export interface SymbolLayerStyleProps {
|
|
|
1006
981
|
*
|
|
1007
982
|
* @requires textField
|
|
1008
983
|
*/
|
|
1009
|
-
textHaloColor?:
|
|
984
|
+
textHaloColor?: string;
|
|
1010
985
|
|
|
1011
986
|
/**
|
|
1012
987
|
* The transition affecting any changes to this layer’s textHaloColor property.
|
|
@@ -1017,7 +992,7 @@ export interface SymbolLayerStyleProps {
|
|
|
1017
992
|
*
|
|
1018
993
|
* @requires textField
|
|
1019
994
|
*/
|
|
1020
|
-
textHaloWidth?:
|
|
995
|
+
textHaloWidth?: number;
|
|
1021
996
|
|
|
1022
997
|
/**
|
|
1023
998
|
* The transition affecting any changes to this layer’s textHaloWidth property.
|
|
@@ -1028,7 +1003,7 @@ export interface SymbolLayerStyleProps {
|
|
|
1028
1003
|
*
|
|
1029
1004
|
* @requires textField
|
|
1030
1005
|
*/
|
|
1031
|
-
textHaloBlur?:
|
|
1006
|
+
textHaloBlur?: number;
|
|
1032
1007
|
|
|
1033
1008
|
/**
|
|
1034
1009
|
* The transition affecting any changes to this layer’s textHaloBlur property.
|
|
@@ -1039,7 +1014,7 @@ export interface SymbolLayerStyleProps {
|
|
|
1039
1014
|
*
|
|
1040
1015
|
* @requires textField
|
|
1041
1016
|
*/
|
|
1042
|
-
textTranslate?:
|
|
1017
|
+
textTranslate?: any[];
|
|
1043
1018
|
|
|
1044
1019
|
/**
|
|
1045
1020
|
* The transition affecting any changes to this layer’s textTranslate property.
|
|
@@ -1050,24 +1025,21 @@ export interface SymbolLayerStyleProps {
|
|
|
1050
1025
|
*
|
|
1051
1026
|
* @requires textField, textTranslate
|
|
1052
1027
|
*/
|
|
1053
|
-
textTranslateAnchor?:
|
|
1054
|
-
Enum<TextTranslateAnchorEnum, TextTranslateAnchorEnumValues>,
|
|
1055
|
-
["zoom"]
|
|
1056
|
-
>;
|
|
1028
|
+
textTranslateAnchor?: "map" | "viewport";
|
|
1057
1029
|
}
|
|
1058
1030
|
export interface CircleLayerStyleProps {
|
|
1059
1031
|
/**
|
|
1060
1032
|
* Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
|
|
1061
1033
|
*/
|
|
1062
|
-
circleSortKey?:
|
|
1034
|
+
circleSortKey?: number;
|
|
1063
1035
|
/**
|
|
1064
1036
|
* Whether this layer is displayed.
|
|
1065
1037
|
*/
|
|
1066
|
-
visibility?:
|
|
1038
|
+
visibility?: "visible" | "none";
|
|
1067
1039
|
/**
|
|
1068
1040
|
* Circle radius.
|
|
1069
1041
|
*/
|
|
1070
|
-
circleRadius?:
|
|
1042
|
+
circleRadius?: number;
|
|
1071
1043
|
|
|
1072
1044
|
/**
|
|
1073
1045
|
* The transition affecting any changes to this layer’s circleRadius property.
|
|
@@ -1076,7 +1048,7 @@ export interface CircleLayerStyleProps {
|
|
|
1076
1048
|
/**
|
|
1077
1049
|
* The fill color of the circle.
|
|
1078
1050
|
*/
|
|
1079
|
-
circleColor?:
|
|
1051
|
+
circleColor?: string;
|
|
1080
1052
|
|
|
1081
1053
|
/**
|
|
1082
1054
|
* The transition affecting any changes to this layer’s circleColor property.
|
|
@@ -1085,7 +1057,7 @@ export interface CircleLayerStyleProps {
|
|
|
1085
1057
|
/**
|
|
1086
1058
|
* Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.
|
|
1087
1059
|
*/
|
|
1088
|
-
circleBlur?:
|
|
1060
|
+
circleBlur?: number;
|
|
1089
1061
|
|
|
1090
1062
|
/**
|
|
1091
1063
|
* The transition affecting any changes to this layer’s circleBlur property.
|
|
@@ -1094,7 +1066,7 @@ export interface CircleLayerStyleProps {
|
|
|
1094
1066
|
/**
|
|
1095
1067
|
* The opacity at which the circle will be drawn.
|
|
1096
1068
|
*/
|
|
1097
|
-
circleOpacity?:
|
|
1069
|
+
circleOpacity?: number;
|
|
1098
1070
|
|
|
1099
1071
|
/**
|
|
1100
1072
|
* The transition affecting any changes to this layer’s circleOpacity property.
|
|
@@ -1103,7 +1075,7 @@ export interface CircleLayerStyleProps {
|
|
|
1103
1075
|
/**
|
|
1104
1076
|
* The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
|
|
1105
1077
|
*/
|
|
1106
|
-
circleTranslate?:
|
|
1078
|
+
circleTranslate?: any[];
|
|
1107
1079
|
|
|
1108
1080
|
/**
|
|
1109
1081
|
* The transition affecting any changes to this layer’s circleTranslate property.
|
|
@@ -1114,28 +1086,19 @@ export interface CircleLayerStyleProps {
|
|
|
1114
1086
|
*
|
|
1115
1087
|
* @requires circleTranslate
|
|
1116
1088
|
*/
|
|
1117
|
-
circleTranslateAnchor?:
|
|
1118
|
-
Enum<CircleTranslateAnchorEnum, CircleTranslateAnchorEnumValues>,
|
|
1119
|
-
["zoom"]
|
|
1120
|
-
>;
|
|
1089
|
+
circleTranslateAnchor?: "map" | "viewport";
|
|
1121
1090
|
/**
|
|
1122
1091
|
* Controls the scaling behavior of the circle when the map is pitched.
|
|
1123
1092
|
*/
|
|
1124
|
-
circlePitchScale?:
|
|
1125
|
-
Enum<CirclePitchScaleEnum, CirclePitchScaleEnumValues>,
|
|
1126
|
-
["zoom"]
|
|
1127
|
-
>;
|
|
1093
|
+
circlePitchScale?: "map" | "viewport";
|
|
1128
1094
|
/**
|
|
1129
1095
|
* Orientation of circle when map is pitched.
|
|
1130
1096
|
*/
|
|
1131
|
-
circlePitchAlignment?:
|
|
1132
|
-
Enum<CirclePitchAlignmentEnum, CirclePitchAlignmentEnumValues>,
|
|
1133
|
-
["zoom"]
|
|
1134
|
-
>;
|
|
1097
|
+
circlePitchAlignment?: "map" | "viewport";
|
|
1135
1098
|
/**
|
|
1136
1099
|
* The width of the circle's stroke. Strokes are placed outside of the `circleRadius`.
|
|
1137
1100
|
*/
|
|
1138
|
-
circleStrokeWidth?:
|
|
1101
|
+
circleStrokeWidth?: number;
|
|
1139
1102
|
|
|
1140
1103
|
/**
|
|
1141
1104
|
* The transition affecting any changes to this layer’s circleStrokeWidth property.
|
|
@@ -1144,7 +1107,7 @@ export interface CircleLayerStyleProps {
|
|
|
1144
1107
|
/**
|
|
1145
1108
|
* The stroke color of the circle.
|
|
1146
1109
|
*/
|
|
1147
|
-
circleStrokeColor?:
|
|
1110
|
+
circleStrokeColor?: string;
|
|
1148
1111
|
|
|
1149
1112
|
/**
|
|
1150
1113
|
* The transition affecting any changes to this layer’s circleStrokeColor property.
|
|
@@ -1153,7 +1116,7 @@ export interface CircleLayerStyleProps {
|
|
|
1153
1116
|
/**
|
|
1154
1117
|
* The opacity of the circle's stroke.
|
|
1155
1118
|
*/
|
|
1156
|
-
circleStrokeOpacity?:
|
|
1119
|
+
circleStrokeOpacity?: number;
|
|
1157
1120
|
|
|
1158
1121
|
/**
|
|
1159
1122
|
* The transition affecting any changes to this layer’s circleStrokeOpacity property.
|
|
@@ -1164,11 +1127,11 @@ export interface HeatmapLayerStyleProps {
|
|
|
1164
1127
|
/**
|
|
1165
1128
|
* Whether this layer is displayed.
|
|
1166
1129
|
*/
|
|
1167
|
-
visibility?:
|
|
1130
|
+
visibility?: "visible" | "none";
|
|
1168
1131
|
/**
|
|
1169
1132
|
* Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.
|
|
1170
1133
|
*/
|
|
1171
|
-
heatmapRadius?:
|
|
1134
|
+
heatmapRadius?: number;
|
|
1172
1135
|
|
|
1173
1136
|
/**
|
|
1174
1137
|
* The transition affecting any changes to this layer’s heatmapRadius property.
|
|
@@ -1177,11 +1140,11 @@ export interface HeatmapLayerStyleProps {
|
|
|
1177
1140
|
/**
|
|
1178
1141
|
* 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.
|
|
1179
1142
|
*/
|
|
1180
|
-
heatmapWeight?:
|
|
1143
|
+
heatmapWeight?: number;
|
|
1181
1144
|
/**
|
|
1182
1145
|
* Similar to `heatmapWeight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
|
|
1183
1146
|
*/
|
|
1184
|
-
heatmapIntensity?:
|
|
1147
|
+
heatmapIntensity?: number;
|
|
1185
1148
|
|
|
1186
1149
|
/**
|
|
1187
1150
|
* The transition affecting any changes to this layer’s heatmapIntensity property.
|
|
@@ -1190,11 +1153,11 @@ export interface HeatmapLayerStyleProps {
|
|
|
1190
1153
|
/**
|
|
1191
1154
|
* Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmapDensity"]` as input.
|
|
1192
1155
|
*/
|
|
1193
|
-
heatmapColor?:
|
|
1156
|
+
heatmapColor?: string;
|
|
1194
1157
|
/**
|
|
1195
1158
|
* The global opacity at which the heatmap layer will be drawn.
|
|
1196
1159
|
*/
|
|
1197
|
-
heatmapOpacity?:
|
|
1160
|
+
heatmapOpacity?: number;
|
|
1198
1161
|
|
|
1199
1162
|
/**
|
|
1200
1163
|
* The transition affecting any changes to this layer’s heatmapOpacity property.
|
|
@@ -1205,11 +1168,11 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1205
1168
|
/**
|
|
1206
1169
|
* Whether this layer is displayed.
|
|
1207
1170
|
*/
|
|
1208
|
-
visibility?:
|
|
1171
|
+
visibility?: "visible" | "none";
|
|
1209
1172
|
/**
|
|
1210
1173
|
* The opacity of the entire fill extrusion layer. This is rendered on a perLayer, not perFeature, basis, and dataDriven styling is not available.
|
|
1211
1174
|
*/
|
|
1212
|
-
fillExtrusionOpacity?:
|
|
1175
|
+
fillExtrusionOpacity?: number;
|
|
1213
1176
|
|
|
1214
1177
|
/**
|
|
1215
1178
|
* The transition affecting any changes to this layer’s fillExtrusionOpacity property.
|
|
@@ -1220,7 +1183,7 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1220
1183
|
*
|
|
1221
1184
|
* @disabledBy fillExtrusionPattern
|
|
1222
1185
|
*/
|
|
1223
|
-
fillExtrusionColor?:
|
|
1186
|
+
fillExtrusionColor?: string;
|
|
1224
1187
|
|
|
1225
1188
|
/**
|
|
1226
1189
|
* The transition affecting any changes to this layer’s fillExtrusionColor property.
|
|
@@ -1229,7 +1192,7 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1229
1192
|
/**
|
|
1230
1193
|
* The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.
|
|
1231
1194
|
*/
|
|
1232
|
-
fillExtrusionTranslate?:
|
|
1195
|
+
fillExtrusionTranslate?: any[];
|
|
1233
1196
|
|
|
1234
1197
|
/**
|
|
1235
1198
|
* The transition affecting any changes to this layer’s fillExtrusionTranslate property.
|
|
@@ -1240,17 +1203,11 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1240
1203
|
*
|
|
1241
1204
|
* @requires fillExtrusionTranslate
|
|
1242
1205
|
*/
|
|
1243
|
-
fillExtrusionTranslateAnchor?:
|
|
1244
|
-
Enum<
|
|
1245
|
-
FillExtrusionTranslateAnchorEnum,
|
|
1246
|
-
FillExtrusionTranslateAnchorEnumValues
|
|
1247
|
-
>,
|
|
1248
|
-
["zoom"]
|
|
1249
|
-
>;
|
|
1206
|
+
fillExtrusionTranslateAnchor?: "map" | "viewport";
|
|
1250
1207
|
/**
|
|
1251
1208
|
* 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.
|
|
1252
1209
|
*/
|
|
1253
|
-
fillExtrusionPattern?:
|
|
1210
|
+
fillExtrusionPattern?: string;
|
|
1254
1211
|
|
|
1255
1212
|
/**
|
|
1256
1213
|
* The transition affecting any changes to this layer’s fillExtrusionPattern property.
|
|
@@ -1259,7 +1216,7 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1259
1216
|
/**
|
|
1260
1217
|
* The height with which to extrude this layer.
|
|
1261
1218
|
*/
|
|
1262
|
-
fillExtrusionHeight?:
|
|
1219
|
+
fillExtrusionHeight?: number;
|
|
1263
1220
|
|
|
1264
1221
|
/**
|
|
1265
1222
|
* The transition affecting any changes to this layer’s fillExtrusionHeight property.
|
|
@@ -1270,22 +1227,26 @@ export interface FillExtrusionLayerStyleProps {
|
|
|
1270
1227
|
*
|
|
1271
1228
|
* @requires fillExtrusionHeight
|
|
1272
1229
|
*/
|
|
1273
|
-
fillExtrusionBase?:
|
|
1230
|
+
fillExtrusionBase?: number;
|
|
1274
1231
|
|
|
1275
1232
|
/**
|
|
1276
1233
|
* The transition affecting any changes to this layer’s fillExtrusionBase property.
|
|
1277
1234
|
*/
|
|
1278
1235
|
fillExtrusionBaseTransition?: Transition;
|
|
1236
|
+
/**
|
|
1237
|
+
* Whether to apply a vertical gradient to the sides of a fillExtrusion layer. If true, sides will be shaded slightly darker farther down.
|
|
1238
|
+
*/
|
|
1239
|
+
fillExtrusionVerticalGradient?: boolean;
|
|
1279
1240
|
}
|
|
1280
1241
|
export interface RasterLayerStyleProps {
|
|
1281
1242
|
/**
|
|
1282
1243
|
* Whether this layer is displayed.
|
|
1283
1244
|
*/
|
|
1284
|
-
visibility?:
|
|
1245
|
+
visibility?: "visible" | "none";
|
|
1285
1246
|
/**
|
|
1286
1247
|
* The opacity at which the image will be drawn.
|
|
1287
1248
|
*/
|
|
1288
|
-
rasterOpacity?:
|
|
1249
|
+
rasterOpacity?: number;
|
|
1289
1250
|
|
|
1290
1251
|
/**
|
|
1291
1252
|
* The transition affecting any changes to this layer’s rasterOpacity property.
|
|
@@ -1294,7 +1255,7 @@ export interface RasterLayerStyleProps {
|
|
|
1294
1255
|
/**
|
|
1295
1256
|
* Rotates hues around the color wheel.
|
|
1296
1257
|
*/
|
|
1297
|
-
rasterHueRotate?:
|
|
1258
|
+
rasterHueRotate?: number;
|
|
1298
1259
|
|
|
1299
1260
|
/**
|
|
1300
1261
|
* The transition affecting any changes to this layer’s rasterHueRotate property.
|
|
@@ -1303,7 +1264,7 @@ export interface RasterLayerStyleProps {
|
|
|
1303
1264
|
/**
|
|
1304
1265
|
* Increase or reduce the brightness of the image. The value is the minimum brightness.
|
|
1305
1266
|
*/
|
|
1306
|
-
rasterBrightnessMin?:
|
|
1267
|
+
rasterBrightnessMin?: number;
|
|
1307
1268
|
|
|
1308
1269
|
/**
|
|
1309
1270
|
* The transition affecting any changes to this layer’s rasterBrightnessMin property.
|
|
@@ -1312,7 +1273,7 @@ export interface RasterLayerStyleProps {
|
|
|
1312
1273
|
/**
|
|
1313
1274
|
* Increase or reduce the brightness of the image. The value is the maximum brightness.
|
|
1314
1275
|
*/
|
|
1315
|
-
rasterBrightnessMax?:
|
|
1276
|
+
rasterBrightnessMax?: number;
|
|
1316
1277
|
|
|
1317
1278
|
/**
|
|
1318
1279
|
* The transition affecting any changes to this layer’s rasterBrightnessMax property.
|
|
@@ -1321,7 +1282,7 @@ export interface RasterLayerStyleProps {
|
|
|
1321
1282
|
/**
|
|
1322
1283
|
* Increase or reduce the saturation of the image.
|
|
1323
1284
|
*/
|
|
1324
|
-
rasterSaturation?:
|
|
1285
|
+
rasterSaturation?: number;
|
|
1325
1286
|
|
|
1326
1287
|
/**
|
|
1327
1288
|
* The transition affecting any changes to this layer’s rasterSaturation property.
|
|
@@ -1330,7 +1291,7 @@ export interface RasterLayerStyleProps {
|
|
|
1330
1291
|
/**
|
|
1331
1292
|
* Increase or reduce the contrast of the image.
|
|
1332
1293
|
*/
|
|
1333
|
-
rasterContrast?:
|
|
1294
|
+
rasterContrast?: number;
|
|
1334
1295
|
|
|
1335
1296
|
/**
|
|
1336
1297
|
* The transition affecting any changes to this layer’s rasterContrast property.
|
|
@@ -1339,38 +1300,29 @@ export interface RasterLayerStyleProps {
|
|
|
1339
1300
|
/**
|
|
1340
1301
|
* The resampling/interpolation method to use for overscaling, also known as texture magnification filter
|
|
1341
1302
|
*/
|
|
1342
|
-
rasterResampling?:
|
|
1343
|
-
Enum<RasterResamplingEnum, RasterResamplingEnumValues>,
|
|
1344
|
-
["zoom"]
|
|
1345
|
-
>;
|
|
1303
|
+
rasterResampling?: "linear" | "nearest";
|
|
1346
1304
|
/**
|
|
1347
|
-
* Fade duration when a new tile is added.
|
|
1305
|
+
* Fade duration when a new tile is added, or when a video is started or its coordinates are updated.
|
|
1348
1306
|
*/
|
|
1349
|
-
rasterFadeDuration?:
|
|
1307
|
+
rasterFadeDuration?: number;
|
|
1350
1308
|
}
|
|
1351
1309
|
export interface HillshadeLayerStyleProps {
|
|
1352
1310
|
/**
|
|
1353
1311
|
* Whether this layer is displayed.
|
|
1354
1312
|
*/
|
|
1355
|
-
visibility?:
|
|
1313
|
+
visibility?: "visible" | "none";
|
|
1356
1314
|
/**
|
|
1357
1315
|
* The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshadeIlluminationAnchor` is set to `viewport` and due north if `hillshadeIlluminationAnchor` is set to `map`.
|
|
1358
1316
|
*/
|
|
1359
|
-
hillshadeIlluminationDirection?:
|
|
1317
|
+
hillshadeIlluminationDirection?: number;
|
|
1360
1318
|
/**
|
|
1361
1319
|
* Direction of light source when map is rotated.
|
|
1362
1320
|
*/
|
|
1363
|
-
hillshadeIlluminationAnchor?:
|
|
1364
|
-
Enum<
|
|
1365
|
-
HillshadeIlluminationAnchorEnum,
|
|
1366
|
-
HillshadeIlluminationAnchorEnumValues
|
|
1367
|
-
>,
|
|
1368
|
-
["zoom"]
|
|
1369
|
-
>;
|
|
1321
|
+
hillshadeIlluminationAnchor?: "map" | "viewport";
|
|
1370
1322
|
/**
|
|
1371
1323
|
* Intensity of the hillshade
|
|
1372
1324
|
*/
|
|
1373
|
-
hillshadeExaggeration?:
|
|
1325
|
+
hillshadeExaggeration?: number;
|
|
1374
1326
|
|
|
1375
1327
|
/**
|
|
1376
1328
|
* The transition affecting any changes to this layer’s hillshadeExaggeration property.
|
|
@@ -1379,7 +1331,7 @@ export interface HillshadeLayerStyleProps {
|
|
|
1379
1331
|
/**
|
|
1380
1332
|
* The shading color of areas that face away from the light source.
|
|
1381
1333
|
*/
|
|
1382
|
-
hillshadeShadowColor?:
|
|
1334
|
+
hillshadeShadowColor?: string;
|
|
1383
1335
|
|
|
1384
1336
|
/**
|
|
1385
1337
|
* The transition affecting any changes to this layer’s hillshadeShadowColor property.
|
|
@@ -1388,7 +1340,7 @@ export interface HillshadeLayerStyleProps {
|
|
|
1388
1340
|
/**
|
|
1389
1341
|
* The shading color of areas that faces towards the light source.
|
|
1390
1342
|
*/
|
|
1391
|
-
hillshadeHighlightColor?:
|
|
1343
|
+
hillshadeHighlightColor?: string;
|
|
1392
1344
|
|
|
1393
1345
|
/**
|
|
1394
1346
|
* The transition affecting any changes to this layer’s hillshadeHighlightColor property.
|
|
@@ -1397,7 +1349,7 @@ export interface HillshadeLayerStyleProps {
|
|
|
1397
1349
|
/**
|
|
1398
1350
|
* The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
|
|
1399
1351
|
*/
|
|
1400
|
-
hillshadeAccentColor?:
|
|
1352
|
+
hillshadeAccentColor?: string;
|
|
1401
1353
|
|
|
1402
1354
|
/**
|
|
1403
1355
|
* The transition affecting any changes to this layer’s hillshadeAccentColor property.
|
|
@@ -1408,13 +1360,13 @@ export interface BackgroundLayerStyleProps {
|
|
|
1408
1360
|
/**
|
|
1409
1361
|
* Whether this layer is displayed.
|
|
1410
1362
|
*/
|
|
1411
|
-
visibility?:
|
|
1363
|
+
visibility?: "visible" | "none";
|
|
1412
1364
|
/**
|
|
1413
1365
|
* The color with which the background will be drawn.
|
|
1414
1366
|
*
|
|
1415
1367
|
* @disabledBy backgroundPattern
|
|
1416
1368
|
*/
|
|
1417
|
-
backgroundColor?:
|
|
1369
|
+
backgroundColor?: string;
|
|
1418
1370
|
|
|
1419
1371
|
/**
|
|
1420
1372
|
* The transition affecting any changes to this layer’s backgroundColor property.
|
|
@@ -1423,7 +1375,7 @@ export interface BackgroundLayerStyleProps {
|
|
|
1423
1375
|
/**
|
|
1424
1376
|
* Name of image in sprite to use for drawing an image background. 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.
|
|
1425
1377
|
*/
|
|
1426
|
-
backgroundPattern?:
|
|
1378
|
+
backgroundPattern?: string;
|
|
1427
1379
|
|
|
1428
1380
|
/**
|
|
1429
1381
|
* The transition affecting any changes to this layer’s backgroundPattern property.
|
|
@@ -1432,7 +1384,7 @@ export interface BackgroundLayerStyleProps {
|
|
|
1432
1384
|
/**
|
|
1433
1385
|
* The opacity at which the background will be drawn.
|
|
1434
1386
|
*/
|
|
1435
|
-
backgroundOpacity?:
|
|
1387
|
+
backgroundOpacity?: number;
|
|
1436
1388
|
|
|
1437
1389
|
/**
|
|
1438
1390
|
* The transition affecting any changes to this layer’s backgroundOpacity property.
|
|
@@ -1443,11 +1395,11 @@ export interface LightLayerStyleProps {
|
|
|
1443
1395
|
/**
|
|
1444
1396
|
* Whether extruded geometries are lit relative to the map or viewport.
|
|
1445
1397
|
*/
|
|
1446
|
-
anchor?:
|
|
1398
|
+
anchor?: "map" | "viewport";
|
|
1447
1399
|
/**
|
|
1448
1400
|
* Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).
|
|
1449
1401
|
*/
|
|
1450
|
-
position?:
|
|
1402
|
+
position?: any[];
|
|
1451
1403
|
|
|
1452
1404
|
/**
|
|
1453
1405
|
* The transition affecting any changes to this layer’s position property.
|
|
@@ -1456,7 +1408,7 @@ export interface LightLayerStyleProps {
|
|
|
1456
1408
|
/**
|
|
1457
1409
|
* Color tint for lighting extruded geometries.
|
|
1458
1410
|
*/
|
|
1459
|
-
color?:
|
|
1411
|
+
color?: string;
|
|
1460
1412
|
|
|
1461
1413
|
/**
|
|
1462
1414
|
* The transition affecting any changes to this layer’s color property.
|
|
@@ -1465,7 +1417,7 @@ export interface LightLayerStyleProps {
|
|
|
1465
1417
|
/**
|
|
1466
1418
|
* Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
|
|
1467
1419
|
*/
|
|
1468
|
-
intensity?:
|
|
1420
|
+
intensity?: number;
|
|
1469
1421
|
|
|
1470
1422
|
/**
|
|
1471
1423
|
* The transition affecting any changes to this layer’s intensity property.
|