Skip to content

Commit 62ea3fb

Browse files
Update docs from maps rnmapbox/maps@512c508
1 parent e8d3a07 commit 62ea3fb

4 files changed

Lines changed: 47 additions & 10 deletions

File tree

docs/components/BackgroundLayer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ The color with which the background will be drawn.
203203

204204
#### Expression
205205

206-
Parameters: `zoom`
206+
Parameters: `zoom, measure-light`
207207
___
208208

209209
### backgroundColorTransition

docs/components/LineLayer.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,7 @@ Name: `lineZOffset`
284284
Mapbox spec: [line-z-offset](https://docs.mapbox.com/style-spec/reference/layers/#layout-line-line-z-offset)
285285

286286
#### Description
287-
Vertical offset from ground, in meters. Defaults to 0. This is an experimental property with some known issues:
288-
* Not supported for globe projection at the moment
289-
* Elevated line discontinuity is possible on tile borders with terrain enabled
290-
* Rendering artifacts can happen near line joins and line caps depending on the line styling
291-
* Rendering artifacts relating to `lineOpacity` and `lineBlur`
292-
* Elevated line visibility is determined by layer order
293-
* ZFighting issues can happen with intersecting elevated lines
294-
* Elevated lines don't cast shadows
287+
Vertical offset from ground, in meters. Not supported for globe projection at the moment.
295288

296289
#### Type
297290
`number`

docs/components/ModelLayer.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ Customizable style attributes
140140

141141
* <a href="#visibility">visibility</a><br/>
142142
* <a href="#modelid">modelId</a><br/>
143+
* <a href="#modelallowdensityreduction">modelAllowDensityReduction</a><br/>
143144
* <a href="#modelopacity">modelOpacity</a><br/>
144145
* <a href="#modelrotation">modelRotation</a><br/>
145146
* <a href="#modelscale">modelScale</a><br/>
@@ -154,6 +155,7 @@ Customizable style attributes
154155
* <a href="#modelroughness">modelRoughness</a><br/>
155156
* <a href="#modelheightbasedemissivestrengthmultiplier">modelHeightBasedEmissiveStrengthMultiplier</a><br/>
156157
* <a href="#modelcutofffaderange">modelCutoffFadeRange</a><br/>
158+
* <a href="#modelelevationreference">modelElevationReference</a><br/>
157159

158160
___
159161

@@ -199,6 +201,23 @@ Model to render. It can be either a string referencing an element to the models
199201

200202
Parameters: `zoom, feature`
201203

204+
___
205+
206+
### modelAllowDensityReduction
207+
Name: `modelAllowDensityReduction`
208+
209+
Mapbox spec: [model-allow-density-reduction](https://docs.mapbox.com/style-spec/reference/layers/#layout-model-model-allow-density-reduction)
210+
211+
#### Description
212+
If true, the models will be reduced in density based on the zoom level. This is useful for large datasets that may be slow to render.
213+
214+
#### Type
215+
`boolean`
216+
#### Default Value
217+
`true`
218+
219+
220+
202221
___
203222

204223
### modelOpacity
@@ -706,3 +725,28 @@ This parameter defines the range for the fadeOut effect before an automatic cont
706725

707726
Parameters: ``
708727

728+
___
729+
730+
### modelElevationReference
731+
Name: `modelElevationReference`
732+
733+
Mapbox spec: [model-elevation-reference](https://docs.mapbox.com/style-spec/reference/layers/#paint-model-model-elevation-reference)
734+
735+
#### Description
736+
Selects the base of the model. Some modes might require precomputed elevation data in the tileset. When using vector tiled source as the model layer source and hdRoadMarkup elevation reference, this property acts as layout property and elevation is evaluated only in tile loading time.
737+
738+
#### Type
739+
`enum`
740+
#### Default Value
741+
`ground`
742+
743+
#### Supported Values
744+
**sea** - Elevated rendering is enabled. Use this mode to elevate models relative to the sea level.<br />
745+
**ground** - Elevated rendering is enabled. Use this mode to elevate models relative to the ground's height below them.<br />
746+
**hd-road-markup** - Elevated rendering is enabled. Use this mode to describe additive and stackable features that should exist only on top of road polygons.<br />
747+
748+
749+
#### Expression
750+
751+
Parameters: ``
752+

docs/components/RasterLayer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ Name: `rasterElevation`
667667
Mapbox spec: [raster-elevation](https://docs.mapbox.com/style-spec/reference/layers/#paint-raster-raster-elevation)
668668

669669
#### Description
670-
Specifies an uniform elevation from the ground, in meters.
670+
Defines an uniform elevation from the base specified in rasterElevationReference, in meters.
671671

672672
#### Type
673673
`number`

0 commit comments

Comments
 (0)