@rnmapbox/maps 10.2.2 → 10.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt +2 -2
  2. package/android/src/main/java/com/rnmapbox/rnmbx/utils/PropertyChanges.kt +1 -1
  3. package/lib/module/components/AbstractLayer.js.map +1 -1
  4. package/lib/module/components/Camera.js +3 -0
  5. package/lib/module/components/Camera.js.map +1 -1
  6. package/lib/module/components/CircleLayer.js.map +1 -1
  7. package/lib/module/components/LineLayer.js.map +1 -1
  8. package/lib/module/components/ModelLayer.js.map +1 -1
  9. package/lib/module/components/RasterLayer.js.map +1 -1
  10. package/lib/module/components/SkyLayer.js.map +1 -1
  11. package/lib/module/modules/location/locationManager.js +1 -4
  12. package/lib/module/modules/location/locationManager.js.map +1 -1
  13. package/lib/module/specs/RNMBXCircleLayerNativeComponent.ts +1 -1
  14. package/lib/module/specs/RNMBXFillLayerNativeComponent.ts +1 -1
  15. package/lib/module/specs/RNMBXHeatmapLayerNativeComponent.ts +1 -1
  16. package/lib/module/specs/RNMBXLineLayerNativeComponent.ts +1 -1
  17. package/lib/module/specs/RNMBXModelLayerNativeComponent.ts +1 -1
  18. package/lib/module/specs/RNMBXRasterLayerNativeComponent.ts +1 -1
  19. package/lib/module/specs/RNMBXSymbolLayerNativeComponent.ts +1 -1
  20. package/lib/module/utils/{MapboxStyles.d.js → MapboxStyles.js} +1 -1
  21. package/lib/module/utils/MapboxStyles.js.map +1 -0
  22. package/lib/typescript/src/components/AbstractLayer.d.ts +1 -1
  23. package/lib/typescript/src/components/AbstractLayer.d.ts.map +1 -1
  24. package/lib/typescript/src/components/Camera.d.ts.map +1 -1
  25. package/lib/typescript/src/components/CircleLayer.d.ts +1 -1
  26. package/lib/typescript/src/components/CircleLayer.d.ts.map +1 -1
  27. package/lib/typescript/src/components/FillExtrusionLayer.d.ts +1 -1
  28. package/lib/typescript/src/components/FillExtrusionLayer.d.ts.map +1 -1
  29. package/lib/typescript/src/components/Light.d.ts +1 -1
  30. package/lib/typescript/src/components/Light.d.ts.map +1 -1
  31. package/lib/typescript/src/components/LineLayer.d.ts +1 -1
  32. package/lib/typescript/src/components/LineLayer.d.ts.map +1 -1
  33. package/lib/typescript/src/components/MapView.d.ts +1 -1
  34. package/lib/typescript/src/components/MapView.d.ts.map +1 -1
  35. package/lib/typescript/src/components/ModelLayer.d.ts +1 -1
  36. package/lib/typescript/src/components/ModelLayer.d.ts.map +1 -1
  37. package/lib/typescript/src/components/RasterLayer.d.ts +1 -1
  38. package/lib/typescript/src/components/RasterLayer.d.ts.map +1 -1
  39. package/lib/typescript/src/components/SkyLayer.d.ts +1 -1
  40. package/lib/typescript/src/components/SkyLayer.d.ts.map +1 -1
  41. package/lib/typescript/src/components/Style.d.ts +1 -1
  42. package/lib/typescript/src/components/Style.d.ts.map +1 -1
  43. package/lib/typescript/src/components/SymbolLayer.d.ts +1 -1
  44. package/lib/typescript/src/components/SymbolLayer.d.ts.map +1 -1
  45. package/lib/typescript/src/modules/location/locationManager.d.ts.map +1 -1
  46. package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts +1 -1
  47. package/lib/typescript/src/specs/RNMBXCircleLayerNativeComponent.d.ts.map +1 -1
  48. package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts +1 -1
  49. package/lib/typescript/src/specs/RNMBXFillLayerNativeComponent.d.ts.map +1 -1
  50. package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts +1 -1
  51. package/lib/typescript/src/specs/RNMBXHeatmapLayerNativeComponent.d.ts.map +1 -1
  52. package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts +1 -1
  53. package/lib/typescript/src/specs/RNMBXLineLayerNativeComponent.d.ts.map +1 -1
  54. package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts +1 -1
  55. package/lib/typescript/src/specs/RNMBXModelLayerNativeComponent.d.ts.map +1 -1
  56. package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts +1 -1
  57. package/lib/typescript/src/specs/RNMBXRasterLayerNativeComponent.d.ts.map +1 -1
  58. package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts +1 -1
  59. package/lib/typescript/src/specs/RNMBXSymbolLayerNativeComponent.d.ts.map +1 -1
  60. package/lib/typescript/src/utils/MapboxStyles.d.ts +2089 -0
  61. package/lib/typescript/src/utils/MapboxStyles.d.ts.map +1 -0
  62. package/lib/typescript/src/utils/animated/Animated.d.ts +5 -5
  63. package/package.json +1 -1
  64. package/src/components/AbstractLayer.tsx +4 -1
  65. package/src/components/Camera.tsx +11 -0
  66. package/src/components/CircleLayer.tsx +4 -1
  67. package/src/components/FillExtrusionLayer.tsx +1 -1
  68. package/src/components/Light.tsx +1 -1
  69. package/src/components/LineLayer.tsx +4 -1
  70. package/src/components/MapView.tsx +1 -1
  71. package/src/components/ModelLayer.tsx +4 -1
  72. package/src/components/RasterLayer.tsx +4 -1
  73. package/src/components/SkyLayer.tsx +4 -1
  74. package/src/components/Style.tsx +1 -1
  75. package/src/components/SymbolLayer.tsx +3 -3
  76. package/src/modules/location/locationManager.ts +3 -5
  77. package/src/specs/RNMBXCircleLayerNativeComponent.ts +1 -1
  78. package/src/specs/RNMBXFillLayerNativeComponent.ts +1 -1
  79. package/src/specs/RNMBXHeatmapLayerNativeComponent.ts +1 -1
  80. package/src/specs/RNMBXLineLayerNativeComponent.ts +1 -1
  81. package/src/specs/RNMBXModelLayerNativeComponent.ts +1 -1
  82. package/src/specs/RNMBXRasterLayerNativeComponent.ts +1 -1
  83. package/src/specs/RNMBXSymbolLayerNativeComponent.ts +1 -1
  84. package/src/utils/{MapboxStyles.d.ts → MapboxStyles.ts} +4 -2
  85. package/lib/module/utils/MapboxStyles.d.js.map +0 -1
@@ -0,0 +1,2089 @@
1
+ import { type ImageSourcePropType } from 'react-native';
2
+ export type Translation = {
3
+ x: number;
4
+ y: number;
5
+ } | [number, number];
6
+ export interface Transition {
7
+ duration: number;
8
+ delay: number;
9
+ }
10
+ export type FormattedString = string;
11
+ type ExpressionName = 'array' | 'boolean' | 'collator' | 'format' | 'image' | 'literal' | 'number' | 'number-format' | 'object' | 'string' | 'to-boolean' | 'to-color' | 'to-number' | 'to-string' | 'typeof' | 'accumulated' | 'feature-state' | 'geometry-type' | 'id' | 'line-progress' | 'properties' | 'at' | 'get' | 'has' | 'in' | 'index-of' | 'length' | 'slice' | '!' | '!=' | '<' | '<=' | '==' | '>' | '>=' | 'all' | 'any' | 'case' | 'match' | 'coalesce' | 'within' | 'interpolate' | 'interpolate-hcl' | 'interpolate-lab' | 'step' | 'let' | 'var' | 'concat' | 'downcase' | 'is-supported-script' | 'resolved-locale' | 'upcase' | 'rgb' | 'rgba' | 'to-rgba' | '-' | '*' | '/' | '%' | '^' | '+' | 'abs' | 'acos' | 'asin' | 'atan' | 'ceil' | 'cos' | 'distance' | 'e' | 'floor' | 'ln' | 'ln2' | 'log10' | 'log2' | 'max' | 'min' | 'pi' | 'round' | 'sin' | 'sqrt' | 'tan' | 'zoom' | 'heatmap-density';
12
+ type ExpressionField = string | number | boolean | Expression | ExpressionField[] | {
13
+ [key: string]: ExpressionField;
14
+ };
15
+ export type Expression = readonly [ExpressionName, ...ExpressionField[]];
16
+ export type FilterExpression = Expression;
17
+ type ExpressionParameters = 'zoom' | 'feature' | 'feature-state' | 'sky-radial-progress' | 'line-progress' | 'heatmap-density' | 'measure-light' | 'raster-value';
18
+ type ResolvedImageType = ImageSourcePropType | string;
19
+ export type Value<T, _AllowedParameters extends ExpressionParameters[] = []> = T | Expression;
20
+ declare enum VisibilityEnum {
21
+ /** The layer is shown. */
22
+ Visible = "visible",
23
+ /** The layer is not shown. */
24
+ None = "none"
25
+ }
26
+ type VisibilityEnumValues = 'visible' | 'none';
27
+ declare enum FillTranslateAnchorEnum {
28
+ /** The fill is translated relative to the map. */
29
+ Map = "map",
30
+ /** The fill is translated relative to the viewport. */
31
+ Viewport = "viewport"
32
+ }
33
+ type FillTranslateAnchorEnumValues = 'map' | 'viewport';
34
+ declare enum LineCapEnum {
35
+ /** A cap with a squared-off end which is drawn to the exact endpoint of the line. */
36
+ Butt = "butt",
37
+ /** 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. */
38
+ Round = "round",
39
+ /** 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. */
40
+ Square = "square"
41
+ }
42
+ type LineCapEnumValues = 'butt' | 'round' | 'square';
43
+ declare enum LineJoinEnum {
44
+ /** 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. */
45
+ Bevel = "bevel",
46
+ /** 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. */
47
+ Round = "round",
48
+ /** A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet. */
49
+ Miter = "miter",
50
+ /** Line segments are not joined together, each one creates a separate line. Useful in combination with line-pattern. Line-cap property is not respected. Can't be used with data-driven styling. */
51
+ None = "none"
52
+ }
53
+ type LineJoinEnumValues = 'bevel' | 'round' | 'miter' | 'none';
54
+ declare enum LineTranslateAnchorEnum {
55
+ /** The line is translated relative to the map. */
56
+ Map = "map",
57
+ /** The line is translated relative to the viewport. */
58
+ Viewport = "viewport"
59
+ }
60
+ type LineTranslateAnchorEnumValues = 'map' | 'viewport';
61
+ declare enum LineElevationReferenceEnum {
62
+ /** Elevated rendering is disabled. */
63
+ None = "none",
64
+ /** Elevated rendering is enabled. Use this mode to elevate lines relative to the sea level. */
65
+ Sea = "sea",
66
+ /** Elevated rendering is enabled. Use this mode to elevate lines relative to the ground's height below them. */
67
+ Ground = "ground",
68
+ /** Elevated rendering is enabled. Use this mode to describe additive and stackable features that should exist only on top of road polygons. */
69
+ HdRoadMarkup = "hd-road-markup"
70
+ }
71
+ type LineElevationReferenceEnumValues = 'none' | 'sea' | 'ground' | 'hd-road-markup';
72
+ declare enum SymbolPlacementEnum {
73
+ /** The label is placed at the point where the geometry is located. */
74
+ Point = "point",
75
+ /** The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. */
76
+ Line = "line",
77
+ /** The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries. */
78
+ LineCenter = "line-center"
79
+ }
80
+ type SymbolPlacementEnumValues = 'point' | 'line' | 'line-center';
81
+ declare enum SymbolZOrderEnum {
82
+ /** 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`. */
83
+ Auto = "auto",
84
+ /** Sorts symbols by their y-position relative to the viewport if any of the following is set to `true`: `icon-allow-overlap`, `text-allow-overlap`, `icon-ignore-placement`, `text-ignore-placement`. */
85
+ ViewportY = "viewport-y",
86
+ /** Sorts symbols by `symbol-sort-key` if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data. */
87
+ Source = "source"
88
+ }
89
+ type SymbolZOrderEnumValues = 'auto' | 'viewport-y' | 'source';
90
+ declare enum IconRotationAlignmentEnum {
91
+ /** 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. */
92
+ Map = "map",
93
+ /** Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`. */
94
+ Viewport = "viewport",
95
+ /** When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`. */
96
+ Auto = "auto"
97
+ }
98
+ type IconRotationAlignmentEnumValues = 'map' | 'viewport' | 'auto';
99
+ declare enum IconTextFitEnum {
100
+ /** The icon is displayed at its intrinsic aspect ratio. */
101
+ None = "none",
102
+ /** The icon is scaled in the x-dimension to fit the width of the text. */
103
+ Width = "width",
104
+ /** The icon is scaled in the y-dimension to fit the height of the text. */
105
+ Height = "height",
106
+ /** The icon is scaled in both x- and y-dimensions. */
107
+ Both = "both"
108
+ }
109
+ type IconTextFitEnumValues = 'none' | 'width' | 'height' | 'both';
110
+ declare enum IconAnchorEnum {
111
+ /** The center of the icon is placed closest to the anchor. */
112
+ Center = "center",
113
+ /** The left side of the icon is placed closest to the anchor. */
114
+ Left = "left",
115
+ /** The right side of the icon is placed closest to the anchor. */
116
+ Right = "right",
117
+ /** The top of the icon is placed closest to the anchor. */
118
+ Top = "top",
119
+ /** The bottom of the icon is placed closest to the anchor. */
120
+ Bottom = "bottom",
121
+ /** The top left corner of the icon is placed closest to the anchor. */
122
+ TopLeft = "top-left",
123
+ /** The top right corner of the icon is placed closest to the anchor. */
124
+ TopRight = "top-right",
125
+ /** The bottom left corner of the icon is placed closest to the anchor. */
126
+ BottomLeft = "bottom-left",
127
+ /** The bottom right corner of the icon is placed closest to the anchor. */
128
+ BottomRight = "bottom-right"
129
+ }
130
+ type IconAnchorEnumValues = 'center' | 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
131
+ declare enum IconPitchAlignmentEnum {
132
+ /** The icon is aligned to the plane of the map. */
133
+ Map = "map",
134
+ /** The icon is aligned to the plane of the viewport. */
135
+ Viewport = "viewport",
136
+ /** Automatically matches the value of `icon-rotation-alignment`. */
137
+ Auto = "auto"
138
+ }
139
+ type IconPitchAlignmentEnumValues = 'map' | 'viewport' | 'auto';
140
+ declare enum TextPitchAlignmentEnum {
141
+ /** The text is aligned to the plane of the map. */
142
+ Map = "map",
143
+ /** The text is aligned to the plane of the viewport. */
144
+ Viewport = "viewport",
145
+ /** Automatically matches the value of `text-rotation-alignment`. */
146
+ Auto = "auto"
147
+ }
148
+ type TextPitchAlignmentEnumValues = 'map' | 'viewport' | 'auto';
149
+ declare enum TextRotationAlignmentEnum {
150
+ /** 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. */
151
+ Map = "map",
152
+ /** Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`. */
153
+ Viewport = "viewport",
154
+ /** When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`. */
155
+ Auto = "auto"
156
+ }
157
+ type TextRotationAlignmentEnumValues = 'map' | 'viewport' | 'auto';
158
+ declare enum TextJustifyEnum {
159
+ /** The text is aligned towards the anchor position. */
160
+ Auto = "auto",
161
+ /** The text is aligned to the left. */
162
+ Left = "left",
163
+ /** The text is centered. */
164
+ Center = "center",
165
+ /** The text is aligned to the right. */
166
+ Right = "right"
167
+ }
168
+ type TextJustifyEnumValues = 'auto' | 'left' | 'center' | 'right';
169
+ declare enum TextVariableAnchorEnum {
170
+ /** The center of the text is placed closest to the anchor. */
171
+ Center = "center",
172
+ /** The left side of the text is placed closest to the anchor. */
173
+ Left = "left",
174
+ /** The right side of the text is placed closest to the anchor. */
175
+ Right = "right",
176
+ /** The top of the text is placed closest to the anchor. */
177
+ Top = "top",
178
+ /** The bottom of the text is placed closest to the anchor. */
179
+ Bottom = "bottom",
180
+ /** The top left corner of the text is placed closest to the anchor. */
181
+ TopLeft = "top-left",
182
+ /** The top right corner of the text is placed closest to the anchor. */
183
+ TopRight = "top-right",
184
+ /** The bottom left corner of the text is placed closest to the anchor. */
185
+ BottomLeft = "bottom-left",
186
+ /** The bottom right corner of the text is placed closest to the anchor. */
187
+ BottomRight = "bottom-right"
188
+ }
189
+ type TextVariableAnchorEnumValues = 'center' | 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
190
+ declare enum TextAnchorEnum {
191
+ /** The center of the text is placed closest to the anchor. */
192
+ Center = "center",
193
+ /** The left side of the text is placed closest to the anchor. */
194
+ Left = "left",
195
+ /** The right side of the text is placed closest to the anchor. */
196
+ Right = "right",
197
+ /** The top of the text is placed closest to the anchor. */
198
+ Top = "top",
199
+ /** The bottom of the text is placed closest to the anchor. */
200
+ Bottom = "bottom",
201
+ /** The top left corner of the text is placed closest to the anchor. */
202
+ TopLeft = "top-left",
203
+ /** The top right corner of the text is placed closest to the anchor. */
204
+ TopRight = "top-right",
205
+ /** The bottom left corner of the text is placed closest to the anchor. */
206
+ BottomLeft = "bottom-left",
207
+ /** The bottom right corner of the text is placed closest to the anchor. */
208
+ BottomRight = "bottom-right"
209
+ }
210
+ type TextAnchorEnumValues = 'center' | 'left' | 'right' | 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
211
+ declare enum TextWritingModeEnum {
212
+ /** If a text's language supports horizontal writing mode, symbols would be laid out horizontally. */
213
+ Horizontal = "horizontal",
214
+ /** If a text's language supports vertical writing mode, symbols would be laid out vertically. */
215
+ Vertical = "vertical"
216
+ }
217
+ type TextWritingModeEnumValues = 'horizontal' | 'vertical';
218
+ declare enum TextTransformEnum {
219
+ /** The text is not altered. */
220
+ None = "none",
221
+ /** Forces all letters to be displayed in uppercase. */
222
+ Uppercase = "uppercase",
223
+ /** Forces all letters to be displayed in lowercase. */
224
+ Lowercase = "lowercase"
225
+ }
226
+ type TextTransformEnumValues = 'none' | 'uppercase' | 'lowercase';
227
+ declare enum IconTranslateAnchorEnum {
228
+ /** Icons are translated relative to the map. */
229
+ Map = "map",
230
+ /** Icons are translated relative to the viewport. */
231
+ Viewport = "viewport"
232
+ }
233
+ type IconTranslateAnchorEnumValues = 'map' | 'viewport';
234
+ declare enum TextTranslateAnchorEnum {
235
+ /** The text is translated relative to the map. */
236
+ Map = "map",
237
+ /** The text is translated relative to the viewport. */
238
+ Viewport = "viewport"
239
+ }
240
+ type TextTranslateAnchorEnumValues = 'map' | 'viewport';
241
+ declare enum SymbolElevationReferenceEnum {
242
+ /** Elevate symbols relative to the sea level. */
243
+ Sea = "sea",
244
+ /** Elevate symbols relative to the ground's height below them. */
245
+ Ground = "ground",
246
+ /** Use this mode to enable elevated behavior for features that are rendered on top of 3D road polygons. The feature is currently being developed. */
247
+ HdRoadMarkup = "hd-road-markup"
248
+ }
249
+ type SymbolElevationReferenceEnumValues = 'sea' | 'ground' | 'hd-road-markup';
250
+ declare enum CircleTranslateAnchorEnum {
251
+ /** The circle is translated relative to the map. */
252
+ Map = "map",
253
+ /** The circle is translated relative to the viewport. */
254
+ Viewport = "viewport"
255
+ }
256
+ type CircleTranslateAnchorEnumValues = 'map' | 'viewport';
257
+ declare enum CirclePitchScaleEnum {
258
+ /** Circles are scaled according to their apparent distance to the camera. */
259
+ Map = "map",
260
+ /** Circles are not scaled. */
261
+ Viewport = "viewport"
262
+ }
263
+ type CirclePitchScaleEnumValues = 'map' | 'viewport';
264
+ declare enum CirclePitchAlignmentEnum {
265
+ /** The circle is aligned to the plane of the map. */
266
+ Map = "map",
267
+ /** The circle is aligned to the plane of the viewport. */
268
+ Viewport = "viewport"
269
+ }
270
+ type CirclePitchAlignmentEnumValues = 'map' | 'viewport';
271
+ declare enum CircleElevationReferenceEnum {
272
+ /** Elevated rendering is disabled. */
273
+ None = "none",
274
+ /** Elevated rendering is enabled. Use this mode to describe additive and stackable features that should exist only on top of road polygons. */
275
+ HdRoadMarkup = "hd-road-markup"
276
+ }
277
+ type CircleElevationReferenceEnumValues = 'none' | 'hd-road-markup';
278
+ declare enum FillExtrusionTranslateAnchorEnum {
279
+ /** The fill extrusion is translated relative to the map. */
280
+ Map = "map",
281
+ /** The fill extrusion is translated relative to the viewport. */
282
+ Viewport = "viewport"
283
+ }
284
+ type FillExtrusionTranslateAnchorEnumValues = 'map' | 'viewport';
285
+ declare enum FillExtrusionHeightAlignmentEnum {
286
+ /** The fill extrusion height follows terrain slope. */
287
+ Terrain = "terrain",
288
+ /** The fill extrusion height is flat over terrain. */
289
+ Flat = "flat"
290
+ }
291
+ type FillExtrusionHeightAlignmentEnumValues = 'terrain' | 'flat';
292
+ declare enum FillExtrusionBaseAlignmentEnum {
293
+ /** The fill extrusion base follows terrain slope. */
294
+ Terrain = "terrain",
295
+ /** The fill extrusion base is flat over terrain. */
296
+ Flat = "flat"
297
+ }
298
+ type FillExtrusionBaseAlignmentEnumValues = 'terrain' | 'flat';
299
+ declare enum RasterResamplingEnum {
300
+ /** (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 */
301
+ Linear = "linear",
302
+ /** Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled */
303
+ Nearest = "nearest"
304
+ }
305
+ type RasterResamplingEnumValues = 'linear' | 'nearest';
306
+ declare enum HillshadeIlluminationAnchorEnum {
307
+ /** The hillshade illumination is relative to the north direction. */
308
+ Map = "map",
309
+ /** The hillshade illumination is relative to the top of the viewport. */
310
+ Viewport = "viewport"
311
+ }
312
+ type HillshadeIlluminationAnchorEnumValues = 'map' | 'viewport';
313
+ declare enum ModelTypeEnum {
314
+ /** Integrated to 3D scene, using depth testing, along with terrain, fill-extrusions and custom layer. */
315
+ Common3d = "common-3d",
316
+ /** Displayed over other 3D content, occluded by terrain. */
317
+ LocationIndicator = "location-indicator"
318
+ }
319
+ type ModelTypeEnumValues = 'common-3d' | 'location-indicator';
320
+ declare enum BackgroundPitchAlignmentEnum {
321
+ /** The background is aligned to the plane of the map. */
322
+ Map = "map",
323
+ /** The background is aligned to the plane of the viewport, covering the whole screen. Note: This mode disables the automatic reordering of the layer when terrain or globe projection is used. */
324
+ Viewport = "viewport"
325
+ }
326
+ type BackgroundPitchAlignmentEnumValues = 'map' | 'viewport';
327
+ declare enum SkyTypeEnum {
328
+ /** Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`. */
329
+ Gradient = "gradient",
330
+ /** Renders the sky with a simulated atmospheric scattering algorithm, the sun direction can be attached to the light position or explicitly set through `sky-atmosphere-sun`. */
331
+ Atmosphere = "atmosphere"
332
+ }
333
+ type SkyTypeEnumValues = 'gradient' | 'atmosphere';
334
+ declare enum AnchorEnum {
335
+ /** The position of the light source is aligned to the rotation of the map. */
336
+ Map = "map",
337
+ /** The position of the light source is aligned to the rotation of the viewport. */
338
+ Viewport = "viewport"
339
+ }
340
+ type AnchorEnumValues = 'map' | 'viewport';
341
+ type Enum<EnumType, EnumValues> = EnumType | EnumValues;
342
+ export interface FillLayerStyleProps {
343
+ /**
344
+ * Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
345
+ */
346
+ fillSortKey?: Value<number, ['zoom', 'feature']>;
347
+ /**
348
+ * Whether this layer is displayed.
349
+ */
350
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
351
+ /**
352
+ * Whether or not the fill should be antialiased.
353
+ */
354
+ fillAntialias?: Value<boolean, ['zoom']>;
355
+ /**
356
+ * 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.
357
+ */
358
+ fillOpacity?: Value<number, [
359
+ 'zoom',
360
+ 'feature',
361
+ 'feature-state',
362
+ 'measure-light'
363
+ ]>;
364
+ /**
365
+ * The transition affecting any changes to this layer’s fillOpacity property.
366
+ */
367
+ fillOpacityTransition?: Transition;
368
+ /**
369
+ * 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.
370
+ *
371
+ * @disabledBy fillPattern
372
+ */
373
+ fillColor?: Value<string, [
374
+ 'zoom',
375
+ 'feature',
376
+ 'feature-state',
377
+ 'measure-light'
378
+ ]>;
379
+ /**
380
+ * The transition affecting any changes to this layer’s fillColor property.
381
+ */
382
+ fillColorTransition?: Transition;
383
+ /**
384
+ * The outline color of the fill. Matches the value of `fillColor` if unspecified.
385
+ *
386
+ * @disabledBy fillPattern
387
+ */
388
+ fillOutlineColor?: Value<string, [
389
+ 'zoom',
390
+ 'feature',
391
+ 'feature-state',
392
+ 'measure-light'
393
+ ]>;
394
+ /**
395
+ * The transition affecting any changes to this layer’s fillOutlineColor property.
396
+ */
397
+ fillOutlineColorTransition?: Transition;
398
+ /**
399
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
400
+ */
401
+ fillTranslate?: Value<Translation, ['zoom']>;
402
+ /**
403
+ * The transition affecting any changes to this layer’s fillTranslate property.
404
+ */
405
+ fillTranslateTransition?: Transition;
406
+ /**
407
+ * Controls the frame of reference for `fillTranslate`.
408
+ *
409
+ * @requires fillTranslate
410
+ */
411
+ fillTranslateAnchor?: Value<Enum<FillTranslateAnchorEnum, FillTranslateAnchorEnumValues>, [
412
+ 'zoom'
413
+ ]>;
414
+ /**
415
+ * 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.
416
+ */
417
+ fillPattern?: Value<ResolvedImageType, ['zoom', 'feature']>;
418
+ /**
419
+ * Controls the transition progress between the image variants of fillPattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector).
420
+ *
421
+ * @requires linePattern
422
+ */
423
+ fillPatternCrossFade?: Value<number, ['zoom', 'measure-light']>;
424
+ /**
425
+ * Controls the intensity of light emitted on the source features.
426
+ *
427
+ * @requires lights
428
+ */
429
+ fillEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
430
+ /**
431
+ * The transition affecting any changes to this layer’s fillEmissiveStrength property.
432
+ */
433
+ fillEmissiveStrengthTransition?: Transition;
434
+ }
435
+ export interface LineLayerStyleProps {
436
+ /**
437
+ * The display of line endings.
438
+ */
439
+ lineCap?: Value<Enum<LineCapEnum, LineCapEnumValues>, ['zoom', 'feature']>;
440
+ /**
441
+ * The display of lines when joining.
442
+ */
443
+ lineJoin?: Value<Enum<LineJoinEnum, LineJoinEnumValues>, ['zoom', 'feature']>;
444
+ /**
445
+ * Used to automatically convert miter joins to bevel joins for sharp angles.
446
+ */
447
+ lineMiterLimit?: Value<number, ['zoom']>;
448
+ /**
449
+ * Used to automatically convert round joins to miter joins for shallow angles.
450
+ */
451
+ lineRoundLimit?: Value<number, ['zoom']>;
452
+ /**
453
+ * Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
454
+ */
455
+ lineSortKey?: Value<number, ['zoom', 'feature']>;
456
+ /**
457
+ * Whether this layer is displayed.
458
+ */
459
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
460
+ /**
461
+ * The opacity at which the line will be drawn.
462
+ */
463
+ lineOpacity?: Value<number, [
464
+ 'zoom',
465
+ 'feature',
466
+ 'feature-state',
467
+ 'measure-light'
468
+ ]>;
469
+ /**
470
+ * The transition affecting any changes to this layer’s lineOpacity property.
471
+ */
472
+ lineOpacityTransition?: Transition;
473
+ /**
474
+ * The color with which the line will be drawn.
475
+ *
476
+ * @disabledBy linePattern
477
+ */
478
+ lineColor?: Value<string, [
479
+ 'zoom',
480
+ 'feature',
481
+ 'feature-state',
482
+ 'measure-light'
483
+ ]>;
484
+ /**
485
+ * The transition affecting any changes to this layer’s lineColor property.
486
+ */
487
+ lineColorTransition?: Transition;
488
+ /**
489
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
490
+ */
491
+ lineTranslate?: Value<Translation, ['zoom']>;
492
+ /**
493
+ * The transition affecting any changes to this layer’s lineTranslate property.
494
+ */
495
+ lineTranslateTransition?: Transition;
496
+ /**
497
+ * Controls the frame of reference for `lineTranslate`.
498
+ *
499
+ * @requires lineTranslate
500
+ */
501
+ lineTranslateAnchor?: Value<Enum<LineTranslateAnchorEnum, LineTranslateAnchorEnumValues>, [
502
+ 'zoom'
503
+ ]>;
504
+ /**
505
+ * Stroke thickness.
506
+ */
507
+ lineWidth?: Value<number, [
508
+ 'zoom',
509
+ 'feature',
510
+ 'feature-state',
511
+ 'measure-light',
512
+ 'line-progress'
513
+ ]>;
514
+ /**
515
+ * The transition affecting any changes to this layer’s lineWidth property.
516
+ */
517
+ lineWidthTransition?: Transition;
518
+ /**
519
+ * Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.
520
+ */
521
+ lineGapWidth?: Value<number, [
522
+ 'zoom',
523
+ 'feature',
524
+ 'feature-state',
525
+ 'measure-light'
526
+ ]>;
527
+ /**
528
+ * The transition affecting any changes to this layer’s lineGapWidth property.
529
+ */
530
+ lineGapWidthTransition?: Transition;
531
+ /**
532
+ * 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.
533
+ */
534
+ lineOffset?: Value<number, [
535
+ 'zoom',
536
+ 'feature',
537
+ 'feature-state',
538
+ 'measure-light'
539
+ ]>;
540
+ /**
541
+ * The transition affecting any changes to this layer’s lineOffset property.
542
+ */
543
+ lineOffsetTransition?: Transition;
544
+ /**
545
+ * Blur applied to the line, in pixels.
546
+ */
547
+ lineBlur?: Value<number, [
548
+ 'zoom',
549
+ 'feature',
550
+ 'feature-state',
551
+ 'measure-light'
552
+ ]>;
553
+ /**
554
+ * The transition affecting any changes to this layer’s lineBlur property.
555
+ */
556
+ lineBlurTransition?: Transition;
557
+ /**
558
+ * 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.
559
+ *
560
+ * @disabledBy linePattern
561
+ */
562
+ lineDasharray?: Value<number[], ['zoom', 'feature']>;
563
+ /**
564
+ * 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.
565
+ */
566
+ linePattern?: Value<ResolvedImageType, ['zoom', 'feature']>;
567
+ /**
568
+ * A gradient used to color a line feature at various distances along its length. Defined using a `step` or `interpolate` expression which outputs a color for each corresponding `lineProgress` input value. `lineProgress` is a percentage of the line feature's total length as measured on the webmercator projected coordinate plane (a `number` between `0` and `1`). Can only be used with GeoJSON sources that specify `"lineMetrics": true`.
569
+ *
570
+ * @disabledBy linePattern
571
+ */
572
+ lineGradient?: Value<string, ['line-progress']>;
573
+ /**
574
+ * The line part between [trimStart, trimEnd] will be painted using `lineTrimColor,` which is transparent by default to produce a route vanishing effect. The line trimOff offset is based on the whole line range [0.0, 1.0].
575
+ */
576
+ lineTrimOffset?: number[];
577
+ /**
578
+ * Vertical offset from ground, in meters. Defaults to 0. This is an experimental property with some known issues:
579
+ * Not supported for globe projection at the moment
580
+ * Elevated line discontinuity is possible on tile borders with terrain enabled
581
+ * Rendering artifacts can happen near line joins and line caps depending on the line styling
582
+ * Rendering artifacts relating to `lineOpacity` and `lineBlur`
583
+ * Elevated line visibility is determined by layer order
584
+ * ZFighting issues can happen with intersecting elevated lines
585
+ * Elevated lines don't cast shadows
586
+ *
587
+ * @requires lineElevationReference
588
+ */
589
+ lineZOffset?: Value<number, ['zoom', 'feature', 'line-progress']>;
590
+ /**
591
+ * Selects the base of lineElevation. Some modes might require precomputed elevation data in the tileset.
592
+ */
593
+ lineElevationReference?: Value<Enum<LineElevationReferenceEnum, LineElevationReferenceEnumValues>>;
594
+ /**
595
+ * Defines the slope of an elevated line. A value of 0 creates a horizontal line. A value of 1 creates a vertical line. Other values are currently not supported. If undefined, the line follows the terrain slope. This is an experimental property with some known issues:
596
+ * Vertical lines don't support line caps
597
+ * `lineJoin: round` is not supported with this property
598
+ *
599
+ * @requires lineZOffset
600
+ */
601
+ lineCrossSlope?: Value<number>;
602
+ /**
603
+ * Controls the transition progress between the image variants of linePattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector).
604
+ *
605
+ * @requires linePattern
606
+ */
607
+ linePatternCrossFade?: Value<number, ['zoom', 'measure-light']>;
608
+ /**
609
+ * The fade range for the trimStart and trimEnd points is defined by the `lineTrimOffset` property. The first element of the array represents the fade range from the trimStart point toward the end of the line, while the second element defines the fade range from the trimEnd point toward the beginning of the line. The fade result is achieved by interpolating between `lineTrimColor` and the color specified by the `lineColor` or the `lineGradient` property.
610
+ *
611
+ * @requires lineTrimOffset
612
+ */
613
+ lineTrimFadeRange?: Value<number[], ['zoom', 'measure-light']>;
614
+ /**
615
+ * The color to be used for rendering the trimmed line section that is defined by the `lineTrimOffset` property.
616
+ *
617
+ * @requires lineTrimOffset
618
+ */
619
+ lineTrimColor?: Value<string, ['zoom', 'measure-light']>;
620
+ /**
621
+ * The transition affecting any changes to this layer’s lineTrimColor property.
622
+ */
623
+ lineTrimColorTransition?: Transition;
624
+ /**
625
+ * Controls the intensity of light emitted on the source features.
626
+ *
627
+ * @requires lights
628
+ */
629
+ lineEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
630
+ /**
631
+ * The transition affecting any changes to this layer’s lineEmissiveStrength property.
632
+ */
633
+ lineEmissiveStrengthTransition?: Transition;
634
+ /**
635
+ * Opacity multiplier (multiplies lineOpacity value) of the line part that is occluded by 3D objects. Value 0 hides occluded part, value 1 means the same opacity as nonOccluded part. The property is not supported when `lineOpacity` has dataDriven styling.
636
+ */
637
+ lineOcclusionOpacity?: Value<number, ['zoom']>;
638
+ /**
639
+ * The transition affecting any changes to this layer’s lineOcclusionOpacity property.
640
+ */
641
+ lineOcclusionOpacityTransition?: Transition;
642
+ }
643
+ export interface SymbolLayerStyleProps {
644
+ /**
645
+ * Label placement relative to its geometry.
646
+ */
647
+ symbolPlacement?: Value<Enum<SymbolPlacementEnum, SymbolPlacementEnumValues>, [
648
+ 'zoom'
649
+ ]>;
650
+ /**
651
+ * Distance between two symbol anchors.
652
+ */
653
+ symbolSpacing?: Value<number, ['zoom']>;
654
+ /**
655
+ * 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 Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.
656
+ */
657
+ symbolAvoidEdges?: Value<boolean, ['zoom']>;
658
+ /**
659
+ * 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.
660
+ */
661
+ symbolSortKey?: Value<number, ['zoom', 'feature']>;
662
+ /**
663
+ * 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`.
664
+ */
665
+ symbolZOrder?: Value<Enum<SymbolZOrderEnum, SymbolZOrderEnumValues>, [
666
+ 'zoom'
667
+ ]>;
668
+ /**
669
+ * If true, the icon will be visible even if it collides with other previously drawn symbols.
670
+ *
671
+ * @requires iconImage
672
+ */
673
+ iconAllowOverlap?: Value<boolean, ['zoom']>;
674
+ /**
675
+ * If true, other symbols can be visible even if they collide with the icon.
676
+ *
677
+ * @requires iconImage
678
+ */
679
+ iconIgnorePlacement?: Value<boolean, ['zoom']>;
680
+ /**
681
+ * If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.
682
+ *
683
+ * @requires iconImage, textField
684
+ */
685
+ iconOptional?: Value<boolean, ['zoom']>;
686
+ /**
687
+ * In combination with `symbolPlacement`, determines the rotation behavior of icons.
688
+ *
689
+ * @requires iconImage
690
+ */
691
+ iconRotationAlignment?: Value<Enum<IconRotationAlignmentEnum, IconRotationAlignmentEnumValues>, [
692
+ 'zoom'
693
+ ]>;
694
+ /**
695
+ * 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.
696
+ *
697
+ * @requires iconImage
698
+ */
699
+ iconSize?: Value<number, ['zoom', 'feature']>;
700
+ /**
701
+ * Scales the icon to fit around the associated text.
702
+ *
703
+ * @requires iconImage, textField
704
+ */
705
+ iconTextFit?: Value<Enum<IconTextFitEnum, IconTextFitEnumValues>, [
706
+ 'zoom',
707
+ 'feature'
708
+ ]>;
709
+ /**
710
+ * Size of the additional area added to dimensions determined by `iconTextFit`, in clockwise order: top, right, bottom, left.
711
+ *
712
+ * @requires iconImage, textField
713
+ */
714
+ iconTextFitPadding?: Value<number[], ['zoom', 'feature']>;
715
+ /**
716
+ * Name of image in sprite to use for drawing an image background.
717
+ */
718
+ iconImage?: Value<ResolvedImageType, ['zoom', 'feature']>;
719
+ /**
720
+ * Rotates the icon clockwise.
721
+ *
722
+ * @requires iconImage
723
+ */
724
+ iconRotate?: Value<number, ['zoom', 'feature']>;
725
+ /**
726
+ * Size of the additional area around the icon bounding box used for detecting symbol collisions.
727
+ *
728
+ * @requires iconImage
729
+ */
730
+ iconPadding?: Value<number, ['zoom']>;
731
+ /**
732
+ * If true, the icon may be flipped to prevent it from being rendered upsideDown.
733
+ *
734
+ * @requires iconImage
735
+ */
736
+ iconKeepUpright?: Value<boolean, ['zoom']>;
737
+ /**
738
+ * 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.
739
+ *
740
+ * @requires iconImage
741
+ */
742
+ iconOffset?: Value<number[], ['zoom', 'feature']>;
743
+ /**
744
+ * Part of the icon placed closest to the anchor.
745
+ *
746
+ * @requires iconImage
747
+ */
748
+ iconAnchor?: Value<Enum<IconAnchorEnum, IconAnchorEnumValues>, [
749
+ 'zoom',
750
+ 'feature'
751
+ ]>;
752
+ /**
753
+ * Orientation of icon when map is pitched.
754
+ *
755
+ * @requires iconImage
756
+ */
757
+ iconPitchAlignment?: Value<Enum<IconPitchAlignmentEnum, IconPitchAlignmentEnumValues>, [
758
+ 'zoom'
759
+ ]>;
760
+ /**
761
+ * Orientation of text when map is pitched.
762
+ *
763
+ * @requires textField
764
+ */
765
+ textPitchAlignment?: Value<Enum<TextPitchAlignmentEnum, TextPitchAlignmentEnumValues>, [
766
+ 'zoom'
767
+ ]>;
768
+ /**
769
+ * In combination with `symbolPlacement`, determines the rotation behavior of the individual glyphs forming the text.
770
+ *
771
+ * @requires textField
772
+ */
773
+ textRotationAlignment?: Value<Enum<TextRotationAlignmentEnum, TextRotationAlignmentEnumValues>, [
774
+ 'zoom'
775
+ ]>;
776
+ /**
777
+ * 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. SDF images are not supported in formatted text and will be ignored.
778
+ */
779
+ textField?: Value<FormattedString, ['zoom', 'feature']>;
780
+ /**
781
+ * Font stack to use for displaying text.
782
+ *
783
+ * @requires textField
784
+ */
785
+ textFont?: Value<string[], ['zoom', 'feature']>;
786
+ /**
787
+ * Font size.
788
+ *
789
+ * @requires textField
790
+ */
791
+ textSize?: Value<number, ['zoom', 'feature']>;
792
+ /**
793
+ * The maximum line width for text wrapping.
794
+ *
795
+ * @requires textField
796
+ */
797
+ textMaxWidth?: Value<number, ['zoom', 'feature']>;
798
+ /**
799
+ * Text leading value for multiLine text.
800
+ *
801
+ * @requires textField
802
+ */
803
+ textLineHeight?: Value<number, ['zoom', 'feature']>;
804
+ /**
805
+ * Text tracking amount.
806
+ *
807
+ * @requires textField
808
+ */
809
+ textLetterSpacing?: Value<number, ['zoom', 'feature']>;
810
+ /**
811
+ * Text justification options.
812
+ *
813
+ * @requires textField
814
+ */
815
+ textJustify?: Value<Enum<TextJustifyEnum, TextJustifyEnumValues>, [
816
+ 'zoom',
817
+ 'feature'
818
+ ]>;
819
+ /**
820
+ * 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.
821
+ *
822
+ * @requires textField
823
+ */
824
+ textRadialOffset?: Value<number, ['zoom', 'feature']>;
825
+ /**
826
+ * 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`.
827
+ *
828
+ * @requires textField
829
+ */
830
+ textVariableAnchor?: Value<Enum<TextVariableAnchorEnum, TextVariableAnchorEnumValues>[], [
831
+ 'zoom'
832
+ ]>;
833
+ /**
834
+ * Part of the text placed closest to the anchor.
835
+ *
836
+ * @requires textField
837
+ *
838
+ * @disabledBy textVariableAnchor
839
+ */
840
+ textAnchor?: Value<Enum<TextAnchorEnum, TextAnchorEnumValues>, [
841
+ 'zoom',
842
+ 'feature'
843
+ ]>;
844
+ /**
845
+ * Maximum angle change between adjacent characters.
846
+ *
847
+ * @requires textField
848
+ */
849
+ textMaxAngle?: Value<number, ['zoom']>;
850
+ /**
851
+ * 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. For symbol with point placement, the order of elements in an array define priority order for the placement of an orientation variant. For symbol with line placement, the default text writing mode is either ['horizontal', 'vertical'] or ['vertical', 'horizontal'], the order doesn't affect the placement.
852
+ *
853
+ * @requires textField
854
+ */
855
+ textWritingMode?: Value<Enum<TextWritingModeEnum, TextWritingModeEnumValues>[], [
856
+ 'zoom'
857
+ ]>;
858
+ /**
859
+ * Rotates the text clockwise.
860
+ *
861
+ * @requires textField
862
+ */
863
+ textRotate?: Value<number, ['zoom', 'feature']>;
864
+ /**
865
+ * Size of the additional area around the text bounding box used for detecting symbol collisions.
866
+ *
867
+ * @requires textField
868
+ */
869
+ textPadding?: Value<number, ['zoom']>;
870
+ /**
871
+ * If true, the text may be flipped vertically to prevent it from being rendered upsideDown.
872
+ *
873
+ * @requires textField
874
+ */
875
+ textKeepUpright?: Value<boolean, ['zoom']>;
876
+ /**
877
+ * Specifies how to capitalize text, similar to the CSS `textTransform` property.
878
+ *
879
+ * @requires textField
880
+ */
881
+ textTransform?: Value<Enum<TextTransformEnum, TextTransformEnumValues>, [
882
+ 'zoom',
883
+ 'feature'
884
+ ]>;
885
+ /**
886
+ * 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.
887
+ *
888
+ * @requires textField
889
+ *
890
+ * @disabledBy textRadialOffset
891
+ */
892
+ textOffset?: Value<number[], ['zoom', 'feature']>;
893
+ /**
894
+ * If true, the text will be visible even if it collides with other previously drawn symbols.
895
+ *
896
+ * @requires textField
897
+ */
898
+ textAllowOverlap?: Value<boolean, ['zoom']>;
899
+ /**
900
+ * If true, other symbols can be visible even if they collide with the text.
901
+ *
902
+ * @requires textField
903
+ */
904
+ textIgnorePlacement?: Value<boolean, ['zoom']>;
905
+ /**
906
+ * If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.
907
+ *
908
+ * @requires textField, iconImage
909
+ */
910
+ textOptional?: Value<boolean, ['zoom']>;
911
+ /**
912
+ * Whether this layer is displayed.
913
+ */
914
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
915
+ /**
916
+ * The opacity at which the icon will be drawn.
917
+ *
918
+ * @requires iconImage
919
+ */
920
+ iconOpacity?: Value<number, [
921
+ 'zoom',
922
+ 'feature',
923
+ 'feature-state',
924
+ 'measure-light'
925
+ ]>;
926
+ /**
927
+ * The transition affecting any changes to this layer’s iconOpacity property.
928
+ */
929
+ iconOpacityTransition?: Transition;
930
+ /**
931
+ * The color of the icon. This can only be used with [SDF icons](https://docs.mapbox.com/help/troubleshooting/using-recolorable-images-in-mapbox-maps/).
932
+ *
933
+ * @requires iconImage
934
+ */
935
+ iconColor?: Value<string, [
936
+ 'zoom',
937
+ 'feature',
938
+ 'feature-state',
939
+ 'measure-light'
940
+ ]>;
941
+ /**
942
+ * The transition affecting any changes to this layer’s iconColor property.
943
+ */
944
+ iconColorTransition?: Transition;
945
+ /**
946
+ * The color of the icon's halo. Icon halos can only be used with [SDF icons](https://docs.mapbox.com/help/troubleshooting/using-recolorable-images-in-mapbox-maps/).
947
+ *
948
+ * @requires iconImage
949
+ */
950
+ iconHaloColor?: Value<string, [
951
+ 'zoom',
952
+ 'feature',
953
+ 'feature-state',
954
+ 'measure-light'
955
+ ]>;
956
+ /**
957
+ * The transition affecting any changes to this layer’s iconHaloColor property.
958
+ */
959
+ iconHaloColorTransition?: Transition;
960
+ /**
961
+ * Distance of halo to the icon outline.
962
+ *
963
+ * @requires iconImage
964
+ */
965
+ iconHaloWidth?: Value<number, [
966
+ 'zoom',
967
+ 'feature',
968
+ 'feature-state',
969
+ 'measure-light'
970
+ ]>;
971
+ /**
972
+ * The transition affecting any changes to this layer’s iconHaloWidth property.
973
+ */
974
+ iconHaloWidthTransition?: Transition;
975
+ /**
976
+ * Fade out the halo towards the outside.
977
+ *
978
+ * @requires iconImage
979
+ */
980
+ iconHaloBlur?: Value<number, [
981
+ 'zoom',
982
+ 'feature',
983
+ 'feature-state',
984
+ 'measure-light'
985
+ ]>;
986
+ /**
987
+ * The transition affecting any changes to this layer’s iconHaloBlur property.
988
+ */
989
+ iconHaloBlurTransition?: Transition;
990
+ /**
991
+ * Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
992
+ *
993
+ * @requires iconImage
994
+ */
995
+ iconTranslate?: Value<Translation, ['zoom']>;
996
+ /**
997
+ * The transition affecting any changes to this layer’s iconTranslate property.
998
+ */
999
+ iconTranslateTransition?: Transition;
1000
+ /**
1001
+ * Controls the frame of reference for `iconTranslate`.
1002
+ *
1003
+ * @requires iconImage, iconTranslate
1004
+ */
1005
+ iconTranslateAnchor?: Value<Enum<IconTranslateAnchorEnum, IconTranslateAnchorEnumValues>, [
1006
+ 'zoom'
1007
+ ]>;
1008
+ /**
1009
+ * The opacity at which the text will be drawn.
1010
+ *
1011
+ * @requires textField
1012
+ */
1013
+ textOpacity?: Value<number, [
1014
+ 'zoom',
1015
+ 'feature',
1016
+ 'feature-state',
1017
+ 'measure-light'
1018
+ ]>;
1019
+ /**
1020
+ * The transition affecting any changes to this layer’s textOpacity property.
1021
+ */
1022
+ textOpacityTransition?: Transition;
1023
+ /**
1024
+ * The color with which the text will be drawn.
1025
+ *
1026
+ * @requires textField
1027
+ */
1028
+ textColor?: Value<string, [
1029
+ 'zoom',
1030
+ 'feature',
1031
+ 'feature-state',
1032
+ 'measure-light'
1033
+ ]>;
1034
+ /**
1035
+ * The transition affecting any changes to this layer’s textColor property.
1036
+ */
1037
+ textColorTransition?: Transition;
1038
+ /**
1039
+ * The color of the text's halo, which helps it stand out from backgrounds.
1040
+ *
1041
+ * @requires textField
1042
+ */
1043
+ textHaloColor?: Value<string, [
1044
+ 'zoom',
1045
+ 'feature',
1046
+ 'feature-state',
1047
+ 'measure-light'
1048
+ ]>;
1049
+ /**
1050
+ * The transition affecting any changes to this layer’s textHaloColor property.
1051
+ */
1052
+ textHaloColorTransition?: Transition;
1053
+ /**
1054
+ * Distance of halo to the font outline. Max text halo width is 1/4 of the fontSize.
1055
+ *
1056
+ * @requires textField
1057
+ */
1058
+ textHaloWidth?: Value<number, [
1059
+ 'zoom',
1060
+ 'feature',
1061
+ 'feature-state',
1062
+ 'measure-light'
1063
+ ]>;
1064
+ /**
1065
+ * The transition affecting any changes to this layer’s textHaloWidth property.
1066
+ */
1067
+ textHaloWidthTransition?: Transition;
1068
+ /**
1069
+ * The halo's fadeout distance towards the outside.
1070
+ *
1071
+ * @requires textField
1072
+ */
1073
+ textHaloBlur?: Value<number, [
1074
+ 'zoom',
1075
+ 'feature',
1076
+ 'feature-state',
1077
+ 'measure-light'
1078
+ ]>;
1079
+ /**
1080
+ * The transition affecting any changes to this layer’s textHaloBlur property.
1081
+ */
1082
+ textHaloBlurTransition?: Transition;
1083
+ /**
1084
+ * Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.
1085
+ *
1086
+ * @requires textField
1087
+ */
1088
+ textTranslate?: Value<Translation, ['zoom']>;
1089
+ /**
1090
+ * The transition affecting any changes to this layer’s textTranslate property.
1091
+ */
1092
+ textTranslateTransition?: Transition;
1093
+ /**
1094
+ * Controls the frame of reference for `textTranslate`.
1095
+ *
1096
+ * @requires textField, textTranslate
1097
+ */
1098
+ textTranslateAnchor?: Value<Enum<TextTranslateAnchorEnum, TextTranslateAnchorEnumValues>, [
1099
+ 'zoom'
1100
+ ]>;
1101
+ /**
1102
+ * Position symbol on buildings (both fill extrusions and models) rooftops. In order to have minimal impact on performance, this is supported only when `fillExtrusionHeight` is not zoomDependent and remains unchanged. For fading in buildings when zooming in, fillExtrusionVerticalScale should be used and symbols would raise with building rooftops. Symbols are sorted by elevation, except in cases when `viewportY` sorting or `symbolSortKey` are applied.
1103
+ */
1104
+ symbolZElevate?: Value<boolean, ['zoom']>;
1105
+ /**
1106
+ * Selects the base of symbolElevation.
1107
+ */
1108
+ symbolElevationReference?: Value<Enum<SymbolElevationReferenceEnum, SymbolElevationReferenceEnumValues>, [
1109
+ 'zoom'
1110
+ ]>;
1111
+ /**
1112
+ * The opacity at which the icon will be drawn in case of being depth occluded. Absent value means full occlusion against terrain only.
1113
+ *
1114
+ * @requires iconImage
1115
+ */
1116
+ iconOcclusionOpacity?: Value<number, [
1117
+ 'zoom',
1118
+ 'feature',
1119
+ 'feature-state',
1120
+ 'measure-light'
1121
+ ]>;
1122
+ /**
1123
+ * The transition affecting any changes to this layer’s iconOcclusionOpacity property.
1124
+ */
1125
+ iconOcclusionOpacityTransition?: Transition;
1126
+ /**
1127
+ * Controls the intensity of light emitted on the source features.
1128
+ *
1129
+ * @requires lights
1130
+ */
1131
+ iconEmissiveStrength?: Value<number, [
1132
+ 'zoom',
1133
+ 'measure-light',
1134
+ 'feature-state'
1135
+ ]>;
1136
+ /**
1137
+ * The transition affecting any changes to this layer’s iconEmissiveStrength property.
1138
+ */
1139
+ iconEmissiveStrengthTransition?: Transition;
1140
+ /**
1141
+ * Controls the intensity of light emitted on the source features.
1142
+ *
1143
+ * @requires lights
1144
+ */
1145
+ textEmissiveStrength?: Value<number, [
1146
+ 'zoom',
1147
+ 'measure-light',
1148
+ 'feature-state'
1149
+ ]>;
1150
+ /**
1151
+ * The transition affecting any changes to this layer’s textEmissiveStrength property.
1152
+ */
1153
+ textEmissiveStrengthTransition?: Transition;
1154
+ /**
1155
+ * Controls the transition progress between the image variants of iconImage. Zero means the first variant is used, one is the second, and in between they are blended together. . Both images should be the same size and have the same type (either raster or vector).
1156
+ *
1157
+ * @requires iconImage
1158
+ */
1159
+ iconImageCrossFade?: Value<number, ['zoom', 'measure-light']>;
1160
+ /**
1161
+ * The opacity at which the text will be drawn in case of being depth occluded. Absent value means full occlusion against terrain only.
1162
+ *
1163
+ * @requires textField
1164
+ */
1165
+ textOcclusionOpacity?: Value<number, [
1166
+ 'zoom',
1167
+ 'feature',
1168
+ 'feature-state',
1169
+ 'measure-light'
1170
+ ]>;
1171
+ /**
1172
+ * The transition affecting any changes to this layer’s textOcclusionOpacity property.
1173
+ */
1174
+ textOcclusionOpacityTransition?: Transition;
1175
+ /**
1176
+ * Increase or reduce the saturation of the symbol icon.
1177
+ */
1178
+ iconColorSaturation?: Value<number>;
1179
+ /**
1180
+ * Specifies an uniform elevation from the ground, in meters.
1181
+ */
1182
+ symbolZOffset?: Value<number, ['zoom', 'feature']>;
1183
+ /**
1184
+ * The transition affecting any changes to this layer’s symbolZOffset property.
1185
+ */
1186
+ symbolZOffsetTransition?: Transition;
1187
+ }
1188
+ export interface CircleLayerStyleProps {
1189
+ /**
1190
+ * Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.
1191
+ */
1192
+ circleSortKey?: Value<number, ['zoom', 'feature']>;
1193
+ /**
1194
+ * Whether this layer is displayed.
1195
+ */
1196
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1197
+ /**
1198
+ * Circle radius.
1199
+ */
1200
+ circleRadius?: Value<number, [
1201
+ 'zoom',
1202
+ 'feature',
1203
+ 'feature-state',
1204
+ 'measure-light'
1205
+ ]>;
1206
+ /**
1207
+ * The transition affecting any changes to this layer’s circleRadius property.
1208
+ */
1209
+ circleRadiusTransition?: Transition;
1210
+ /**
1211
+ * The fill color of the circle.
1212
+ */
1213
+ circleColor?: Value<string, [
1214
+ 'zoom',
1215
+ 'feature',
1216
+ 'feature-state',
1217
+ 'measure-light'
1218
+ ]>;
1219
+ /**
1220
+ * The transition affecting any changes to this layer’s circleColor property.
1221
+ */
1222
+ circleColorTransition?: Transition;
1223
+ /**
1224
+ * Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity. Setting a negative value renders the blur as an inner glow effect.
1225
+ */
1226
+ circleBlur?: Value<number, [
1227
+ 'zoom',
1228
+ 'feature',
1229
+ 'feature-state',
1230
+ 'measure-light'
1231
+ ]>;
1232
+ /**
1233
+ * The transition affecting any changes to this layer’s circleBlur property.
1234
+ */
1235
+ circleBlurTransition?: Transition;
1236
+ /**
1237
+ * The opacity at which the circle will be drawn.
1238
+ */
1239
+ circleOpacity?: Value<number, [
1240
+ 'zoom',
1241
+ 'feature',
1242
+ 'feature-state',
1243
+ 'measure-light'
1244
+ ]>;
1245
+ /**
1246
+ * The transition affecting any changes to this layer’s circleOpacity property.
1247
+ */
1248
+ circleOpacityTransition?: Transition;
1249
+ /**
1250
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
1251
+ */
1252
+ circleTranslate?: Value<Translation, ['zoom']>;
1253
+ /**
1254
+ * The transition affecting any changes to this layer’s circleTranslate property.
1255
+ */
1256
+ circleTranslateTransition?: Transition;
1257
+ /**
1258
+ * Controls the frame of reference for `circleTranslate`.
1259
+ *
1260
+ * @requires circleTranslate
1261
+ */
1262
+ circleTranslateAnchor?: Value<Enum<CircleTranslateAnchorEnum, CircleTranslateAnchorEnumValues>, [
1263
+ 'zoom'
1264
+ ]>;
1265
+ /**
1266
+ * Controls the scaling behavior of the circle when the map is pitched.
1267
+ */
1268
+ circlePitchScale?: Value<Enum<CirclePitchScaleEnum, CirclePitchScaleEnumValues>, [
1269
+ 'zoom'
1270
+ ]>;
1271
+ /**
1272
+ * Orientation of circle when map is pitched.
1273
+ */
1274
+ circlePitchAlignment?: Value<Enum<CirclePitchAlignmentEnum, CirclePitchAlignmentEnumValues>, [
1275
+ 'zoom'
1276
+ ]>;
1277
+ /**
1278
+ * The width of the circle's stroke. Strokes are placed outside of the `circleRadius`.
1279
+ */
1280
+ circleStrokeWidth?: Value<number, [
1281
+ 'zoom',
1282
+ 'feature',
1283
+ 'feature-state',
1284
+ 'measure-light'
1285
+ ]>;
1286
+ /**
1287
+ * The transition affecting any changes to this layer’s circleStrokeWidth property.
1288
+ */
1289
+ circleStrokeWidthTransition?: Transition;
1290
+ /**
1291
+ * The stroke color of the circle.
1292
+ */
1293
+ circleStrokeColor?: Value<string, [
1294
+ 'zoom',
1295
+ 'feature',
1296
+ 'feature-state',
1297
+ 'measure-light'
1298
+ ]>;
1299
+ /**
1300
+ * The transition affecting any changes to this layer’s circleStrokeColor property.
1301
+ */
1302
+ circleStrokeColorTransition?: Transition;
1303
+ /**
1304
+ * The opacity of the circle's stroke.
1305
+ */
1306
+ circleStrokeOpacity?: Value<number, [
1307
+ 'zoom',
1308
+ 'feature',
1309
+ 'feature-state',
1310
+ 'measure-light'
1311
+ ]>;
1312
+ /**
1313
+ * The transition affecting any changes to this layer’s circleStrokeOpacity property.
1314
+ */
1315
+ circleStrokeOpacityTransition?: Transition;
1316
+ /**
1317
+ * Selects the base of circleElevation. Some modes might require precomputed elevation data in the tileset.
1318
+ */
1319
+ circleElevationReference?: Value<Enum<CircleElevationReferenceEnum, CircleElevationReferenceEnumValues>>;
1320
+ /**
1321
+ * Controls the intensity of light emitted on the source features.
1322
+ *
1323
+ * @requires lights
1324
+ */
1325
+ circleEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
1326
+ /**
1327
+ * The transition affecting any changes to this layer’s circleEmissiveStrength property.
1328
+ */
1329
+ circleEmissiveStrengthTransition?: Transition;
1330
+ }
1331
+ export interface HeatmapLayerStyleProps {
1332
+ /**
1333
+ * Whether this layer is displayed.
1334
+ */
1335
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1336
+ /**
1337
+ * 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.
1338
+ */
1339
+ heatmapRadius?: Value<number, [
1340
+ 'zoom',
1341
+ 'feature',
1342
+ 'feature-state',
1343
+ 'measure-light'
1344
+ ]>;
1345
+ /**
1346
+ * The transition affecting any changes to this layer’s heatmapRadius property.
1347
+ */
1348
+ heatmapRadiusTransition?: Transition;
1349
+ /**
1350
+ * 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.
1351
+ */
1352
+ heatmapWeight?: Value<number, [
1353
+ 'zoom',
1354
+ 'feature',
1355
+ 'feature-state',
1356
+ 'measure-light'
1357
+ ]>;
1358
+ /**
1359
+ * Similar to `heatmapWeight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.
1360
+ */
1361
+ heatmapIntensity?: Value<number, ['zoom']>;
1362
+ /**
1363
+ * The transition affecting any changes to this layer’s heatmapIntensity property.
1364
+ */
1365
+ heatmapIntensityTransition?: Transition;
1366
+ /**
1367
+ * Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmapDensity"]` as input.
1368
+ */
1369
+ heatmapColor?: Value<string, ['heatmap-density']>;
1370
+ /**
1371
+ * The global opacity at which the heatmap layer will be drawn.
1372
+ */
1373
+ heatmapOpacity?: Value<number, ['zoom']>;
1374
+ /**
1375
+ * The transition affecting any changes to this layer’s heatmapOpacity property.
1376
+ */
1377
+ heatmapOpacityTransition?: Transition;
1378
+ }
1379
+ export interface FillExtrusionLayerStyleProps {
1380
+ /**
1381
+ * Whether this layer is displayed.
1382
+ */
1383
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1384
+ /**
1385
+ * Radius of a fill extrusion edge in meters. If not zero, rounds extrusion edges for a smoother appearance.
1386
+ */
1387
+ fillExtrusionEdgeRadius?: Value<number>;
1388
+ /**
1389
+ * The opacity of the entire fill extrusion layer. This is rendered on a perLayer, not perFeature, basis, and dataDriven styling is not available.
1390
+ */
1391
+ fillExtrusionOpacity?: Value<number, ['zoom']>;
1392
+ /**
1393
+ * The transition affecting any changes to this layer’s fillExtrusionOpacity property.
1394
+ */
1395
+ fillExtrusionOpacityTransition?: Transition;
1396
+ /**
1397
+ * The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fillExtrusionOpacity` to set layer opacity.
1398
+ *
1399
+ * @disabledBy fillExtrusionPattern
1400
+ */
1401
+ fillExtrusionColor?: Value<string, [
1402
+ 'zoom',
1403
+ 'feature',
1404
+ 'feature-state',
1405
+ 'measure-light'
1406
+ ]>;
1407
+ /**
1408
+ * The transition affecting any changes to this layer’s fillExtrusionColor property.
1409
+ */
1410
+ fillExtrusionColorTransition?: Transition;
1411
+ /**
1412
+ * The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.
1413
+ */
1414
+ fillExtrusionTranslate?: Value<Translation, ['zoom']>;
1415
+ /**
1416
+ * The transition affecting any changes to this layer’s fillExtrusionTranslate property.
1417
+ */
1418
+ fillExtrusionTranslateTransition?: Transition;
1419
+ /**
1420
+ * Controls the frame of reference for `fillExtrusionTranslate`.
1421
+ *
1422
+ * @requires fillExtrusionTranslate
1423
+ */
1424
+ fillExtrusionTranslateAnchor?: Value<Enum<FillExtrusionTranslateAnchorEnum, FillExtrusionTranslateAnchorEnumValues>, [
1425
+ 'zoom'
1426
+ ]>;
1427
+ /**
1428
+ * 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.
1429
+ */
1430
+ fillExtrusionPattern?: Value<ResolvedImageType, ['zoom', 'feature']>;
1431
+ /**
1432
+ * The height with which to extrude this layer.
1433
+ */
1434
+ fillExtrusionHeight?: Value<number, ['zoom', 'feature', 'feature-state']>;
1435
+ /**
1436
+ * The transition affecting any changes to this layer’s fillExtrusionHeight property.
1437
+ */
1438
+ fillExtrusionHeightTransition?: Transition;
1439
+ /**
1440
+ * The height with which to extrude the base of this layer. Must be less than or equal to `fillExtrusionHeight`.
1441
+ *
1442
+ * @requires fillExtrusionHeight
1443
+ */
1444
+ fillExtrusionBase?: Value<number, ['zoom', 'feature', 'feature-state']>;
1445
+ /**
1446
+ * The transition affecting any changes to this layer’s fillExtrusionBase property.
1447
+ */
1448
+ fillExtrusionBaseTransition?: Transition;
1449
+ /**
1450
+ * Whether to apply a vertical gradient to the sides of a fillExtrusion layer. If true, sides will be shaded slightly darker farther down.
1451
+ */
1452
+ fillExtrusionVerticalGradient?: Value<boolean, ['zoom']>;
1453
+ /**
1454
+ * Controls the intensity of shading near ground and concave angles between walls. Default value 0.0 disables ambient occlusion and values around 0.3 provide the most plausible results for buildings.
1455
+ */
1456
+ fillExtrusionAmbientOcclusionIntensity?: Value<number, ['zoom']>;
1457
+ /**
1458
+ * The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionIntensity property.
1459
+ */
1460
+ fillExtrusionAmbientOcclusionIntensityTransition?: Transition;
1461
+ /**
1462
+ * Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the most plausible results for buildings. This property works only with legacy light. When 3D lights are enabled `fillExtrusionAmbientOcclusionWallRadius` and `fillExtrusionAmbientOcclusionGroundRadius` are used instead.
1463
+ *
1464
+ * @requires fillExtrusionEdgeRadius
1465
+ */
1466
+ fillExtrusionAmbientOcclusionRadius?: Value<number, ['zoom']>;
1467
+ /**
1468
+ * The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionRadius property.
1469
+ */
1470
+ fillExtrusionAmbientOcclusionRadiusTransition?: Transition;
1471
+ /**
1472
+ * Indicates whether top edges should be rounded when fillExtrusionEdgeRadius has a value greater than 0. If false, rounded edges are only applied to the sides. Default is true.
1473
+ *
1474
+ * @requires fillExtrusionEdgeRadius
1475
+ */
1476
+ fillExtrusionRoundedRoof?: Value<boolean, ['zoom']>;
1477
+ /**
1478
+ * Controls the transition progress between the image variants of fillExtrusionPattern. Zero means the first variant is used, one is the second, and in between they are blended together. Both images should be the same size and have the same type (either raster or vector).
1479
+ *
1480
+ * @requires linePattern
1481
+ */
1482
+ fillExtrusionPatternCrossFade?: Value<number, ['zoom', 'measure-light']>;
1483
+ /**
1484
+ * Controls the behavior of fill extrusion height over terrain
1485
+ *
1486
+ * @requires fillExtrusionHeight
1487
+ */
1488
+ fillExtrusionHeightAlignment?: Enum<FillExtrusionHeightAlignmentEnum, FillExtrusionHeightAlignmentEnumValues>;
1489
+ /**
1490
+ * Controls the behavior of fill extrusion base over terrain
1491
+ *
1492
+ * @requires fillExtrusionBase
1493
+ */
1494
+ fillExtrusionBaseAlignment?: Enum<FillExtrusionBaseAlignmentEnum, FillExtrusionBaseAlignmentEnumValues>;
1495
+ /**
1496
+ * Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the most plausible results for buildings.
1497
+ *
1498
+ * @requires lights, fillExtrusionEdgeRadius
1499
+ */
1500
+ fillExtrusionAmbientOcclusionWallRadius?: Value<number, ['zoom']>;
1501
+ /**
1502
+ * The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionWallRadius property.
1503
+ */
1504
+ fillExtrusionAmbientOcclusionWallRadiusTransition?: Transition;
1505
+ /**
1506
+ * The extent of the ambient occlusion effect on the ground beneath the extruded buildings in meters.
1507
+ *
1508
+ * @requires lights
1509
+ */
1510
+ fillExtrusionAmbientOcclusionGroundRadius?: Value<number, ['zoom']>;
1511
+ /**
1512
+ * The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionGroundRadius property.
1513
+ */
1514
+ fillExtrusionAmbientOcclusionGroundRadiusTransition?: Transition;
1515
+ /**
1516
+ * Provides a control to futher fineTune the look of the ambient occlusion on the ground beneath the extruded buildings. Lower values give the effect a more solid look while higher values make it smoother.
1517
+ *
1518
+ * @requires lights
1519
+ */
1520
+ fillExtrusionAmbientOcclusionGroundAttenuation?: Value<number, ['zoom']>;
1521
+ /**
1522
+ * The transition affecting any changes to this layer’s fillExtrusionAmbientOcclusionGroundAttenuation property.
1523
+ */
1524
+ fillExtrusionAmbientOcclusionGroundAttenuationTransition?: Transition;
1525
+ /**
1526
+ * The color of the flood light effect on the walls of the extruded buildings.
1527
+ *
1528
+ * @requires lights
1529
+ */
1530
+ fillExtrusionFloodLightColor?: Value<string, ['zoom', 'measure-light']>;
1531
+ /**
1532
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightColor property.
1533
+ */
1534
+ fillExtrusionFloodLightColorTransition?: Transition;
1535
+ /**
1536
+ * The intensity of the flood light color.
1537
+ *
1538
+ * @requires lights
1539
+ */
1540
+ fillExtrusionFloodLightIntensity?: Value<number, ['zoom', 'measure-light']>;
1541
+ /**
1542
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightIntensity property.
1543
+ */
1544
+ fillExtrusionFloodLightIntensityTransition?: Transition;
1545
+ /**
1546
+ * The extent of the flood light effect on the walls of the extruded buildings in meters.
1547
+ *
1548
+ * @requires lights
1549
+ */
1550
+ fillExtrusionFloodLightWallRadius?: Value<number, [
1551
+ 'feature',
1552
+ 'feature-state'
1553
+ ]>;
1554
+ /**
1555
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightWallRadius property.
1556
+ */
1557
+ fillExtrusionFloodLightWallRadiusTransition?: Transition;
1558
+ /**
1559
+ * The extent of the flood light effect on the ground beneath the extruded buildings in meters. Note: this experimental property is evaluated once per tile, during tile initialization. Changing the property value could trigger tile reload. The `featureState` styling is deprecated and will get removed soon.
1560
+ *
1561
+ * @requires lights
1562
+ */
1563
+ fillExtrusionFloodLightGroundRadius?: Value<number, [
1564
+ 'feature',
1565
+ 'feature-state'
1566
+ ]>;
1567
+ /**
1568
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightGroundRadius property.
1569
+ */
1570
+ fillExtrusionFloodLightGroundRadiusTransition?: Transition;
1571
+ /**
1572
+ * Provides a control to futher fineTune the look of the flood light on the ground beneath the extruded buildings. Lower values give the effect a more solid look while higher values make it smoother.
1573
+ *
1574
+ * @requires lights
1575
+ */
1576
+ fillExtrusionFloodLightGroundAttenuation?: Value<number, ['zoom']>;
1577
+ /**
1578
+ * The transition affecting any changes to this layer’s fillExtrusionFloodLightGroundAttenuation property.
1579
+ */
1580
+ fillExtrusionFloodLightGroundAttenuationTransition?: Transition;
1581
+ /**
1582
+ * A global multiplier that can be used to scale base, height, AO, and flood light of the fill extrusions.
1583
+ */
1584
+ fillExtrusionVerticalScale?: Value<number, ['zoom']>;
1585
+ /**
1586
+ * The transition affecting any changes to this layer’s fillExtrusionVerticalScale property.
1587
+ */
1588
+ fillExtrusionVerticalScaleTransition?: Transition;
1589
+ /**
1590
+ * This parameter defines the range for the fadeOut effect before an automatic content cutoff on pitched map views. Fade out is implemented by scaling down and removing buildings in the fade range in a staggered fashion. Opacity is not changed. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.
1591
+ */
1592
+ fillExtrusionCutoffFadeRange?: Value<number>;
1593
+ /**
1594
+ * Controls the intensity of light emitted on the source features.
1595
+ *
1596
+ * @requires lights
1597
+ */
1598
+ fillExtrusionEmissiveStrength?: Value<number, [
1599
+ 'zoom',
1600
+ 'measure-light',
1601
+ 'feature-state'
1602
+ ]>;
1603
+ /**
1604
+ * The transition affecting any changes to this layer’s fillExtrusionEmissiveStrength property.
1605
+ */
1606
+ fillExtrusionEmissiveStrengthTransition?: Transition;
1607
+ /**
1608
+ * If a nonZero value is provided, it sets the fillExtrusion layer into wall rendering mode. The value is used to render the feature with the given width over the outlines of the geometry. Note: This property is experimental and some other fillExtrusion properties might not be supported with nonZero line width.
1609
+ */
1610
+ fillExtrusionLineWidth?: Value<number, [
1611
+ 'zoom',
1612
+ 'feature',
1613
+ 'feature-state',
1614
+ 'measure-light'
1615
+ ]>;
1616
+ /**
1617
+ * The transition affecting any changes to this layer’s fillExtrusionLineWidth property.
1618
+ */
1619
+ fillExtrusionLineWidthTransition?: Transition;
1620
+ }
1621
+ export interface RasterLayerStyleProps {
1622
+ /**
1623
+ * Whether this layer is displayed.
1624
+ */
1625
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1626
+ /**
1627
+ * The opacity at which the image will be drawn.
1628
+ */
1629
+ rasterOpacity?: Value<number, ['zoom']>;
1630
+ /**
1631
+ * The transition affecting any changes to this layer’s rasterOpacity property.
1632
+ */
1633
+ rasterOpacityTransition?: Transition;
1634
+ /**
1635
+ * Rotates hues around the color wheel.
1636
+ */
1637
+ rasterHueRotate?: Value<number, ['zoom']>;
1638
+ /**
1639
+ * The transition affecting any changes to this layer’s rasterHueRotate property.
1640
+ */
1641
+ rasterHueRotateTransition?: Transition;
1642
+ /**
1643
+ * Increase or reduce the brightness of the image. The value is the minimum brightness.
1644
+ */
1645
+ rasterBrightnessMin?: Value<number, ['zoom']>;
1646
+ /**
1647
+ * The transition affecting any changes to this layer’s rasterBrightnessMin property.
1648
+ */
1649
+ rasterBrightnessMinTransition?: Transition;
1650
+ /**
1651
+ * Increase or reduce the brightness of the image. The value is the maximum brightness.
1652
+ */
1653
+ rasterBrightnessMax?: Value<number, ['zoom']>;
1654
+ /**
1655
+ * The transition affecting any changes to this layer’s rasterBrightnessMax property.
1656
+ */
1657
+ rasterBrightnessMaxTransition?: Transition;
1658
+ /**
1659
+ * Increase or reduce the saturation of the image.
1660
+ */
1661
+ rasterSaturation?: Value<number, ['zoom']>;
1662
+ /**
1663
+ * The transition affecting any changes to this layer’s rasterSaturation property.
1664
+ */
1665
+ rasterSaturationTransition?: Transition;
1666
+ /**
1667
+ * Increase or reduce the contrast of the image.
1668
+ */
1669
+ rasterContrast?: Value<number, ['zoom']>;
1670
+ /**
1671
+ * The transition affecting any changes to this layer’s rasterContrast property.
1672
+ */
1673
+ rasterContrastTransition?: Transition;
1674
+ /**
1675
+ * The resampling/interpolation method to use for overscaling, also known as texture magnification filter
1676
+ */
1677
+ rasterResampling?: Value<Enum<RasterResamplingEnum, RasterResamplingEnumValues>, [
1678
+ 'zoom'
1679
+ ]>;
1680
+ /**
1681
+ * Fade duration when a new tile is added.
1682
+ */
1683
+ rasterFadeDuration?: Value<number, ['zoom']>;
1684
+ /**
1685
+ * Defines a color map by which to colorize a raster layer, parameterized by the `["rasterValue"]` expression and evaluated at 256 uniformly spaced steps over the range specified by `rasterColorRange`.
1686
+ */
1687
+ rasterColor?: Value<string, ['raster-value']>;
1688
+ /**
1689
+ * When `rasterColor` is active, specifies the combination of source RGB channels used to compute the raster value. Computed using the equation `mix.r * src.r + mix.g * src.g + mix.b * src.b + mix.a`. The first three components specify the mix of source red, green, and blue channels, respectively. The fourth component serves as a constant offset and is *not* multipled by source alpha. Source alpha is instead carried through and applied as opacity to the colorized result. Default value corresponds to RGB luminosity.
1690
+ *
1691
+ * @requires rasterColor
1692
+ */
1693
+ rasterColorMix?: Value<number[], ['zoom']>;
1694
+ /**
1695
+ * The transition affecting any changes to this layer’s rasterColorMix property.
1696
+ */
1697
+ rasterColorMixTransition?: Transition;
1698
+ /**
1699
+ * When `rasterColor` is active, specifies the range over which `rasterColor` is tabulated. Units correspond to the computed raster value via `rasterColorMix`. For `rasterarray` sources, if `rasterColorRange` is unspecified, the source's stated data range is used.
1700
+ *
1701
+ * @requires rasterColor
1702
+ */
1703
+ rasterColorRange?: Value<number[], ['zoom']>;
1704
+ /**
1705
+ * The transition affecting any changes to this layer’s rasterColorRange property.
1706
+ */
1707
+ rasterColorRangeTransition?: Transition;
1708
+ /**
1709
+ * Controls the intensity of light emitted on the source features.
1710
+ *
1711
+ * @requires lights
1712
+ */
1713
+ rasterEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
1714
+ /**
1715
+ * The transition affecting any changes to this layer’s rasterEmissiveStrength property.
1716
+ */
1717
+ rasterEmissiveStrengthTransition?: Transition;
1718
+ /**
1719
+ * Displayed band of raster array source layer. Defaults to the first band if not set.
1720
+ */
1721
+ rasterArrayBand?: string;
1722
+ /**
1723
+ * Specifies an uniform elevation from the ground, in meters.
1724
+ */
1725
+ rasterElevation?: Value<number, ['zoom']>;
1726
+ /**
1727
+ * The transition affecting any changes to this layer’s rasterElevation property.
1728
+ */
1729
+ rasterElevationTransition?: Transition;
1730
+ }
1731
+ export interface HillshadeLayerStyleProps {
1732
+ /**
1733
+ * Whether this layer is displayed.
1734
+ */
1735
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1736
+ /**
1737
+ * 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` and no 3d lights enabled. If `hillshadeIlluminationAnchor` is set to `map` and 3d lights enabled, the direction from 3d lights is used instead.
1738
+ */
1739
+ hillshadeIlluminationDirection?: Value<number, ['zoom']>;
1740
+ /**
1741
+ * Direction of light source when map is rotated.
1742
+ */
1743
+ hillshadeIlluminationAnchor?: Value<Enum<HillshadeIlluminationAnchorEnum, HillshadeIlluminationAnchorEnumValues>, [
1744
+ 'zoom'
1745
+ ]>;
1746
+ /**
1747
+ * Intensity of the hillshade
1748
+ */
1749
+ hillshadeExaggeration?: Value<number, ['zoom']>;
1750
+ /**
1751
+ * The transition affecting any changes to this layer’s hillshadeExaggeration property.
1752
+ */
1753
+ hillshadeExaggerationTransition?: Transition;
1754
+ /**
1755
+ * The shading color of areas that face away from the light source.
1756
+ */
1757
+ hillshadeShadowColor?: Value<string, ['zoom', 'measure-light']>;
1758
+ /**
1759
+ * The transition affecting any changes to this layer’s hillshadeShadowColor property.
1760
+ */
1761
+ hillshadeShadowColorTransition?: Transition;
1762
+ /**
1763
+ * The shading color of areas that faces towards the light source.
1764
+ */
1765
+ hillshadeHighlightColor?: Value<string, ['zoom', 'measure-light']>;
1766
+ /**
1767
+ * The transition affecting any changes to this layer’s hillshadeHighlightColor property.
1768
+ */
1769
+ hillshadeHighlightColorTransition?: Transition;
1770
+ /**
1771
+ * The shading color used to accentuate rugged terrain like sharp cliffs and gorges.
1772
+ */
1773
+ hillshadeAccentColor?: Value<string, ['zoom', 'measure-light']>;
1774
+ /**
1775
+ * The transition affecting any changes to this layer’s hillshadeAccentColor property.
1776
+ */
1777
+ hillshadeAccentColorTransition?: Transition;
1778
+ }
1779
+ export interface ModelLayerStyleProps {
1780
+ /**
1781
+ * Whether this layer is displayed.
1782
+ */
1783
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1784
+ /**
1785
+ * Model to render. It can be either a string referencing an element to the models root property or an internal or external URL
1786
+ */
1787
+ modelId?: Value<string, ['zoom', 'feature']>;
1788
+ /**
1789
+ * The opacity of the model layer. Except for zoom, expressions that are dataDriven are not supported if using GeoJSON or vector tile as the model layer source.
1790
+ */
1791
+ modelOpacity?: Value<number, ['feature', 'feature-state', 'zoom']>;
1792
+ /**
1793
+ * The transition affecting any changes to this layer’s modelOpacity property.
1794
+ */
1795
+ modelOpacityTransition?: Transition;
1796
+ /**
1797
+ * The rotation of the model in euler angles [lon, lat, z].
1798
+ */
1799
+ modelRotation?: Value<number[], ['feature', 'feature-state', 'zoom']>;
1800
+ /**
1801
+ * The transition affecting any changes to this layer’s modelRotation property.
1802
+ */
1803
+ modelRotationTransition?: Transition;
1804
+ /**
1805
+ * The scale of the model. Expressions that are zoomDependent are not supported if using GeoJSON or vector tile as the model layer source.
1806
+ */
1807
+ modelScale?: Value<number[], ['feature', 'feature-state', 'zoom']>;
1808
+ /**
1809
+ * The transition affecting any changes to this layer’s modelScale property.
1810
+ */
1811
+ modelScaleTransition?: Transition;
1812
+ /**
1813
+ * The translation of the model in meters in form of [longitudal, latitudal, altitude] offsets.
1814
+ */
1815
+ modelTranslation?: Value<number[], ['feature', 'feature-state', 'zoom']>;
1816
+ /**
1817
+ * The transition affecting any changes to this layer’s modelTranslation property.
1818
+ */
1819
+ modelTranslationTransition?: Transition;
1820
+ /**
1821
+ * The tint color of the model layer. modelColorMixIntensity (defaults to 0) defines tint(mix) intensity this means that, this color is not used unless modelColorMixIntensity gets value greater than 0. Expressions that depend on measureLight are not supported when using GeoJSON or vector tile as the model layer source.
1822
+ */
1823
+ modelColor?: Value<string, [
1824
+ 'feature',
1825
+ 'feature-state',
1826
+ 'measure-light',
1827
+ 'zoom'
1828
+ ]>;
1829
+ /**
1830
+ * The transition affecting any changes to this layer’s modelColor property.
1831
+ */
1832
+ modelColorTransition?: Transition;
1833
+ /**
1834
+ * Intensity of modelColor (on a scale from 0 to 1) in color mix with original 3D model's colors. Higher number will present a higher modelColor contribution in mix. Expressions that depend on measureLight are not supported when using GeoJSON or vector tile as the model layer source.
1835
+ */
1836
+ modelColorMixIntensity?: Value<number, [
1837
+ 'feature',
1838
+ 'feature-state',
1839
+ 'measure-light'
1840
+ ]>;
1841
+ /**
1842
+ * The transition affecting any changes to this layer’s modelColorMixIntensity property.
1843
+ */
1844
+ modelColorMixIntensityTransition?: Transition;
1845
+ /**
1846
+ * Defines rendering behavior of model in respect to other 3D scene objects.
1847
+ */
1848
+ modelType?: Enum<ModelTypeEnum, ModelTypeEnumValues>;
1849
+ /**
1850
+ * Enable/Disable shadow casting for this layer
1851
+ */
1852
+ modelCastShadows?: boolean;
1853
+ /**
1854
+ * Enable/Disable shadow receiving for this layer
1855
+ */
1856
+ modelReceiveShadows?: boolean;
1857
+ /**
1858
+ * Intensity of the ambient occlusion if present in the 3D model.
1859
+ */
1860
+ modelAmbientOcclusionIntensity?: Value<number, ['zoom']>;
1861
+ /**
1862
+ * The transition affecting any changes to this layer’s modelAmbientOcclusionIntensity property.
1863
+ */
1864
+ modelAmbientOcclusionIntensityTransition?: Transition;
1865
+ /**
1866
+ * Strength of the emission. There is no emission for value 0. For value 1.0, only emissive component (no shading) is displayed and values above 1.0 produce light contribution to surrounding area, for some of the parts (e.g. doors). Expressions that depend on measureLight are only supported as a global layer value (and not for each feature) when using GeoJSON or vector tile as the model layer source.
1867
+ */
1868
+ modelEmissiveStrength?: Value<number, [
1869
+ 'feature',
1870
+ 'feature-state',
1871
+ 'measure-light'
1872
+ ]>;
1873
+ /**
1874
+ * The transition affecting any changes to this layer’s modelEmissiveStrength property.
1875
+ */
1876
+ modelEmissiveStrengthTransition?: Transition;
1877
+ /**
1878
+ * Material roughness. Material is fully smooth for value 0, and fully rough for value 1. Affects only layers using batchedModel source.
1879
+ */
1880
+ modelRoughness?: Value<number, ['feature', 'feature-state']>;
1881
+ /**
1882
+ * The transition affecting any changes to this layer’s modelRoughness property.
1883
+ */
1884
+ modelRoughnessTransition?: Transition;
1885
+ /**
1886
+ * Emissive strength multiplier along model height (gradient begin, gradient end, value at begin, value at end, gradient curve power (logarithmic scale, curve power = pow(10, val)).
1887
+ */
1888
+ modelHeightBasedEmissiveStrengthMultiplier?: Value<number[], [
1889
+ 'feature',
1890
+ 'feature-state',
1891
+ 'measure-light'
1892
+ ]>;
1893
+ /**
1894
+ * The transition affecting any changes to this layer’s modelHeightBasedEmissiveStrengthMultiplier property.
1895
+ */
1896
+ modelHeightBasedEmissiveStrengthMultiplierTransition?: Transition;
1897
+ /**
1898
+ * This parameter defines the range for the fadeOut effect before an automatic content cutoff on pitched map views. The automatic cutoff range is calculated according to the minimum required zoom level of the source and layer. The fade range is expressed in relation to the height of the map view. A value of 1.0 indicates that the content is faded to the same extent as the map's height in pixels, while a value close to zero represents a sharp cutoff. When the value is set to 0.0, the cutoff is completely disabled. Note: The property has no effect on the map if terrain is enabled.
1899
+ */
1900
+ modelCutoffFadeRange?: Value<number>;
1901
+ }
1902
+ export interface BackgroundLayerStyleProps {
1903
+ /**
1904
+ * Whether this layer is displayed.
1905
+ */
1906
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1907
+ /**
1908
+ * The color with which the background will be drawn.
1909
+ *
1910
+ * @disabledBy backgroundPattern
1911
+ */
1912
+ backgroundColor?: Value<string, ['zoom']>;
1913
+ /**
1914
+ * The transition affecting any changes to this layer’s backgroundColor property.
1915
+ */
1916
+ backgroundColorTransition?: Transition;
1917
+ /**
1918
+ * 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.
1919
+ */
1920
+ backgroundPattern?: Value<ResolvedImageType, ['zoom']>;
1921
+ /**
1922
+ * The opacity at which the background will be drawn.
1923
+ */
1924
+ backgroundOpacity?: Value<number, ['zoom']>;
1925
+ /**
1926
+ * The transition affecting any changes to this layer’s backgroundOpacity property.
1927
+ */
1928
+ backgroundOpacityTransition?: Transition;
1929
+ /**
1930
+ * Orientation of background layer.
1931
+ */
1932
+ backgroundPitchAlignment?: Value<Enum<BackgroundPitchAlignmentEnum, BackgroundPitchAlignmentEnumValues>, [
1933
+ ]>;
1934
+ /**
1935
+ * Controls the intensity of light emitted on the source features.
1936
+ *
1937
+ * @requires lights
1938
+ */
1939
+ backgroundEmissiveStrength?: Value<number, ['zoom', 'measure-light']>;
1940
+ /**
1941
+ * The transition affecting any changes to this layer’s backgroundEmissiveStrength property.
1942
+ */
1943
+ backgroundEmissiveStrengthTransition?: Transition;
1944
+ }
1945
+ export interface SkyLayerStyleProps {
1946
+ /**
1947
+ * Whether this layer is displayed.
1948
+ */
1949
+ visibility?: Value<Enum<VisibilityEnum, VisibilityEnumValues>>;
1950
+ /**
1951
+ * The type of the sky
1952
+ */
1953
+ skyType?: Value<Enum<SkyTypeEnum, SkyTypeEnumValues>, ['zoom']>;
1954
+ /**
1955
+ * Position of the sun center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the sun relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the sun, where 0° is directly above, at zenith, and 90° at the horizon. When this property is ommitted, the sun center is directly inherited from the light position.
1956
+ */
1957
+ skyAtmosphereSun?: Value<number[], ['zoom']>;
1958
+ /**
1959
+ * Intensity of the sun as a light source in the atmosphere (on a scale from 0 to a 100). Setting higher values will brighten up the sky.
1960
+ */
1961
+ skyAtmosphereSunIntensity?: number;
1962
+ /**
1963
+ * Position of the gradient center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the gradient center relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the gradient center, where 0° is directly above, at zenith, and 90° at the horizon.
1964
+ */
1965
+ skyGradientCenter?: Value<number[], ['zoom']>;
1966
+ /**
1967
+ * The angular distance (measured in degrees) from `skyGradientCenter` up to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction from `skyGradientCenter`.
1968
+ */
1969
+ skyGradientRadius?: Value<number, ['zoom']>;
1970
+ /**
1971
+ * Defines a radial color gradient with which to color the sky. The color values can be interpolated with an expression using `skyRadialProgress`. The range [0, 1] for the interpolant covers a radial distance (in degrees) of [0, `skyGradientRadius`] centered at the position specified by `skyGradientCenter`.
1972
+ */
1973
+ skyGradient?: Value<string, ['sky-radial-progress']>;
1974
+ /**
1975
+ * A color applied to the atmosphere sun halo. The alpha channel describes how strongly the sun halo is represented in an atmosphere sky layer.
1976
+ */
1977
+ skyAtmosphereHaloColor?: string;
1978
+ /**
1979
+ * A color used to tweak the main atmospheric scattering coefficients. Using white applies the default coefficients giving the natural blue color to the atmosphere. This color affects how heavily the corresponding wavelength is represented during scattering. The alpha channel describes the density of the atmosphere, with 1 maximum density and 0 no density.
1980
+ */
1981
+ skyAtmosphereColor?: string;
1982
+ /**
1983
+ * The opacity of the entire sky layer.
1984
+ */
1985
+ skyOpacity?: Value<number, ['zoom']>;
1986
+ /**
1987
+ * The transition affecting any changes to this layer’s skyOpacity property.
1988
+ */
1989
+ skyOpacityTransition?: Transition;
1990
+ }
1991
+ export interface LightLayerStyleProps {
1992
+ /**
1993
+ * Whether extruded geometries are lit relative to the map or viewport.
1994
+ */
1995
+ anchor?: Value<Enum<AnchorEnum, AnchorEnumValues>, ['zoom']>;
1996
+ /**
1997
+ * 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).
1998
+ */
1999
+ position?: Value<number[], ['zoom']>;
2000
+ /**
2001
+ * The transition affecting any changes to this layer’s position property.
2002
+ */
2003
+ positionTransition?: Transition;
2004
+ /**
2005
+ * Color tint for lighting extruded geometries.
2006
+ */
2007
+ color?: Value<string, ['zoom']>;
2008
+ /**
2009
+ * The transition affecting any changes to this layer’s color property.
2010
+ */
2011
+ colorTransition?: Transition;
2012
+ /**
2013
+ * Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.
2014
+ */
2015
+ intensity?: Value<number, ['zoom']>;
2016
+ /**
2017
+ * The transition affecting any changes to this layer’s intensity property.
2018
+ */
2019
+ intensityTransition?: Transition;
2020
+ }
2021
+ export interface AtmosphereLayerStyleProps {
2022
+ /**
2023
+ * The start and end distance range in which fog fades from fully transparent to fully opaque. The distance to the point at the center of the map is defined as zero, so that negative range values are closer to the camera, and positive values are farther away.
2024
+ */
2025
+ range?: Value<number[], ['zoom', 'measure-light']>;
2026
+ /**
2027
+ * The transition affecting any changes to this layer’s range property.
2028
+ */
2029
+ rangeTransition?: Transition;
2030
+ /**
2031
+ * The color of the atmosphere region immediately below the horizon and within the `range` and above the horizon and within `horizonBlend`. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.
2032
+ */
2033
+ color?: Value<string, ['zoom', 'measure-light']>;
2034
+ /**
2035
+ * The transition affecting any changes to this layer’s color property.
2036
+ */
2037
+ colorTransition?: Transition;
2038
+ /**
2039
+ * The color of the atmosphere region above the horizon, `highColor` extends further above the horizon than the `color` property and its spread can be controlled with `horizonBlend`. The opacity can be set to `0` to remove the high atmosphere color contribution.
2040
+ */
2041
+ highColor?: Value<string, ['zoom', 'measure-light']>;
2042
+ /**
2043
+ * The transition affecting any changes to this layer’s highColor property.
2044
+ */
2045
+ highColorTransition?: Transition;
2046
+ /**
2047
+ * The color of the region above the horizon and after the end of the `horizonBlend` contribution. The opacity can be set to `0` to have a transparent background.
2048
+ */
2049
+ spaceColor?: Value<string, ['zoom', 'measure-light']>;
2050
+ /**
2051
+ * The transition affecting any changes to this layer’s spaceColor property.
2052
+ */
2053
+ spaceColorTransition?: Transition;
2054
+ /**
2055
+ * Horizon blend applies a smooth fade from the color of the atmosphere to the color of space. A value of zero leaves a sharp transition from atmosphere to space. Increasing the value blends the color of atmosphere into increasingly high angles of the sky.
2056
+ */
2057
+ horizonBlend?: Value<number, ['zoom', 'measure-light']>;
2058
+ /**
2059
+ * The transition affecting any changes to this layer’s horizonBlend property.
2060
+ */
2061
+ horizonBlendTransition?: Transition;
2062
+ /**
2063
+ * A value controlling the star intensity where `0` will show no stars and `1` will show stars at their maximum intensity.
2064
+ */
2065
+ starIntensity?: Value<number, ['zoom', 'measure-light']>;
2066
+ /**
2067
+ * The transition affecting any changes to this layer’s starIntensity property.
2068
+ */
2069
+ starIntensityTransition?: Transition;
2070
+ /**
2071
+ * An array of two number values, specifying the vertical range, measured in meters, over which the fog should gradually fade out. When both parameters are set to zero, the fog will be rendered without any vertical constraints.
2072
+ */
2073
+ verticalRange?: Value<number[], ['zoom', 'measure-light']>;
2074
+ /**
2075
+ * The transition affecting any changes to this layer’s verticalRange property.
2076
+ */
2077
+ verticalRangeTransition?: Transition;
2078
+ }
2079
+ export interface TerrainLayerStyleProps {
2080
+ /**
2081
+ * Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.
2082
+ *
2083
+ * @requires source
2084
+ */
2085
+ exaggeration?: Value<number, ['zoom']>;
2086
+ }
2087
+ export type AllLayerStyleProps = FillLayerStyleProps | LineLayerStyleProps | SymbolLayerStyleProps | CircleLayerStyleProps | HeatmapLayerStyleProps | FillExtrusionLayerStyleProps | RasterLayerStyleProps | HillshadeLayerStyleProps | ModelLayerStyleProps | BackgroundLayerStyleProps | SkyLayerStyleProps | LightLayerStyleProps | AtmosphereLayerStyleProps | TerrainLayerStyleProps;
2088
+ export {};
2089
+ //# sourceMappingURL=MapboxStyles.d.ts.map