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
Copy file name to clipboardExpand all lines: docs/BackgroundLayer.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ ___
73
73
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.
Copy file name to clipboardExpand all lines: docs/FillExtrusionLayer.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ ___
147
147
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.
Copy file name to clipboardExpand all lines: docs/FillLayer.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -184,7 +184,7 @@ ___
184
184
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.
Copy file name to clipboardExpand all lines: docs/LineLayer.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -359,7 +359,7 @@ ___
359
359
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.
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.
132
+
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.
129
133
130
134
#### Type
131
135
`boolean`
@@ -139,6 +143,22 @@ Parameters: `zoom`
139
143
140
144
___
141
145
146
+
#### Name
147
+
`symbolSortKey`
148
+
149
+
#### Description
150
+
Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key when they overlap. Features with a lower sort key will have priority over other features when doing placement.
151
+
152
+
#### Type
153
+
`number`
154
+
155
+
156
+
#### Expression
157
+
158
+
Parameters: `zoom, feature`
159
+
160
+
___
161
+
142
162
#### Name
143
163
`symbolZOrder`
144
164
@@ -336,7 +356,7 @@ ___
336
356
Name of image in sprite to use for drawing an image background.
337
357
338
358
#### Type
339
-
`string`
359
+
`resolvedImage`
340
360
341
361
342
362
#### Expression
@@ -724,6 +744,49 @@ Parameters: `zoom, feature`
724
744
725
745
___
726
746
747
+
#### Name
748
+
`textRadialOffset`
749
+
750
+
#### Description
751
+
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.
752
+
753
+
#### Type
754
+
`number`
755
+
#### Default Value
756
+
`0`
757
+
758
+
#### Units
759
+
`ems`
760
+
761
+
762
+
#### Requires
763
+
`textField`
764
+
765
+
#### Expression
766
+
767
+
Parameters: `zoom, feature`
768
+
769
+
___
770
+
771
+
#### Name
772
+
`textVariableAnchor`
773
+
774
+
#### Description
775
+
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`.
776
+
777
+
#### Type
778
+
`array<enum>`
779
+
780
+
781
+
#### Requires
782
+
`textField`
783
+
784
+
#### Expression
785
+
786
+
Parameters: `zoom`
787
+
788
+
___
789
+
727
790
#### Name
728
791
`textAnchor`
729
792
@@ -750,6 +813,9 @@ Part of the text placed closest to the anchor.
750
813
#### Requires
751
814
`textField`
752
815
816
+
#### Disabled By
817
+
`textVariableAnchor`
818
+
753
819
#### Supported Style Functions
754
820
`camera`
755
821
#### Expression
@@ -773,6 +839,25 @@ Maximum angle change between adjacent characters.
773
839
`degrees`
774
840
775
841
842
+
#### Requires
843
+
`textField`
844
+
845
+
#### Expression
846
+
847
+
Parameters: `zoom`
848
+
849
+
___
850
+
851
+
#### Name
852
+
`textWritingMode`
853
+
854
+
#### Description
855
+
The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.
856
+
857
+
#### Type
858
+
`array<enum>`
859
+
860
+
776
861
#### Requires
777
862
`textField`
778
863
@@ -884,7 +969,7 @@ ___
884
969
`textOffset`
885
970
886
971
#### Description
887
-
Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up.
972
+
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.
0 commit comments