You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Controls how much the elevation of lines with `lineElevationReference` set to `sea` scales with terrain exaggeration. A value of 0 keeps the line at a fixed altitude above sea level. A value of 1 scales the elevation proportionally with terrain exaggeration.
385
+
386
+
#### Type
387
+
`number`
388
+
#### Default Value
389
+
`0`
390
+
391
+
#### Minimum
392
+
`0`
393
+
394
+
395
+
#### Maximum
396
+
`1`
397
+
398
+
#### Requires
399
+
`lineZOffset`
400
+
401
+
#### Expression
402
+
403
+
Parameters: `zoom, feature, line-progress`
404
+
___
405
+
406
+
### lineElevationGroundScaleTransition
407
+
Name: `lineElevationGroundScaleTransition`
408
+
409
+
#### Description
410
+
411
+
The transition affecting any changes to this layer’s lineElevationGroundScale property.
Copy file name to clipboardExpand all lines: docs/docs.json
+57-1Lines changed: 57 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3945,6 +3945,34 @@
3945
3945
"namespace": "layout"
3946
3946
}
3947
3947
},
3948
+
{
3949
+
"name": "lineElevationGroundScale",
3950
+
"type": "number",
3951
+
"values": [],
3952
+
"minimum": 0,
3953
+
"maximum": 1,
3954
+
"default": 0,
3955
+
"description": "Controls how much the elevation of lines with `lineElevationReference` set to `sea` scales with terrain exaggeration. A value of 0 keeps the line at a fixed altitude above sea level. A value of 1 scales the elevation proportionally with terrain exaggeration.",
"description": "Rain particle effect style properties.\n\n@note The default `color` and `vignetteColor` values use `measure-light(\"brightness\")`\nexpressions that are only available in Mapbox Standard-based styles\n(`mapbox://styles/mapbox/standard`, `mapbox://styles/mapbox/standard-satellite`).\nWhen using legacy or custom styles, set `color` and `vignetteColor` explicitly to\navoid \"Brightness is unavailable in the current evaluation context\" warnings and\ninvisible rain. For example: `color=\"#a8adbc\" vignetteColor=\"#464646\"`."
6471
6499
}
6472
6500
],
6473
6501
"fileNameWithExt": "Rain.tsx",
@@ -7071,6 +7099,34 @@
7071
7099
"name": "raster-elevation",
7072
7100
"namespace": "paint"
7073
7101
}
7102
+
},
7103
+
{
7104
+
"name": "rasterElevationReference",
7105
+
"type": "enum",
7106
+
"values": [
7107
+
{
7108
+
"value": "sea",
7109
+
"doc": "Use this mode to elevate raster layers relative to the sea level."
7110
+
},
7111
+
{
7112
+
"value": "ground",
7113
+
"doc": "Use this mode to elevate raster layers relative to the ground's height below them."
7114
+
}
7115
+
],
7116
+
"default": "sea",
7117
+
"description": "Selects the base of rasterElevation.",
* Controls how much the elevation of lines with `lineElevationReference` set to `sea` scales with terrain exaggeration. A value of 0 keeps the line at a fixed altitude above sea level. A value of 1 scales the elevation proportionally with terrain exaggeration.
779
+
*
780
+
* @requires lineZOffset
781
+
*/
782
+
lineElevationGroundScale?: Value<
783
+
number,
784
+
['zoom','feature','line-progress']
785
+
>;
786
+
787
+
/**
788
+
* The transition affecting any changes to this layer’s lineElevationGroundScale property.
789
+
*/
790
+
lineElevationGroundScaleTransition?: Transition;
770
791
/**
771
792
* 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).
0 commit comments