draw_box?: string;
draw_leader?: string;
fill_color?: string;
filter?: string;
font?: string;
height: number;
leader_x_column_name?: string;
leader_y_column_name?: string;
line_color?: string;
line_width?: string;
max_x: number;
max_y: number;
min_x: number;
min_y: number;
options?: Record<string, string>;
projection?: string;
table_name: string;
text_angle?: string;
text_color?: string;
text_scale?: string;
text_string: string;
width: number;
x_column_name: string;
x_offset?: string;
y_column_name: string;
y_offset?: string;
- Defined in src/types.ts:5632
Properties
Optionaldraw_leader
Boolean expression indicating whether leader lines will be drawn from the labels to points specified using leader_x_column_name and leader_y_column_name. If blank, no leader lines will be drawn.
- Defined in src/types.ts:5656
Optionalfill_color
Numeric expression that evaluates to the fill color for the labels’ boxes. If blank, the boxes will not be filled.
- Defined in src/types.ts:5662
Optionalfilter
Boolean expression indicating which labels to include in the image. If blank, all labels will be included.
- Defined in src/types.ts:5668
Optionalfont
Expression that evaluates to the fonts for the labels. If blank, a default system font will be used.
- Defined in src/types.ts:5646
Optionalleader_x_column_name
Double, float or decimal expression that evaluates to the x coordinates of the points to which the labels’ leader lines will be drawn. May be left blank if no leader lines are to be drawn.
- Defined in src/types.ts:5664
Optionalleader_y_column_name
Double, float or decimal expression that evaluates to the y coordinates of the points to which the labels’ leader lines will be drawn. May be left blank if no leader lines are to be drawn.
- Defined in src/types.ts:5666
Optionalline_color
Numeric expression that evaluates to the line color for the labels’ boxes and leader lines. If blank, opaque black will be used.
- Defined in src/types.ts:5660
Optionalline_width
Numeric expression that evaluates to the line width in output pixels for the labels’ boxes and leader lines. If blank, a line width of 1 will be used.
- Defined in src/types.ts:5658
max_x
Upper bound for the x coordinates of labels to include in the image.
- Defined in src/types.ts:5672
max_y
Upper bound for the y coordinates of labels to include in the image.
- Defined in src/types.ts:5676
min_x
Lower bound for the x coordinates of labels to include in the image.
- Defined in src/types.ts:5670
min_y
Lower bound for the y coordinates of labels to include in the image.
- Defined in src/types.ts:5674
Optionalprojection
Spatial Reference System (i.e. EPSG Code).
- Defined in src/types.ts:5682
table_name
Name of the table containing the data defining the labels to render.
- Defined in src/types.ts:5634
Optionaltext_angle
Numeric expression that evaluates to the angle of clockwise rotation (in degrees) for the labels. If blank, an angle of 0 will be used.
- Defined in src/types.ts:5650
Optionaltext_color
Numeric expression that evaluates to the text color for the labels. If blank, opaque black will be used.
- Defined in src/types.ts:5648
Optionaltext_scale
Numeric expression that evaluates to the scaling factor for the labels. (1 is normal size, 0.5 is half size, 2 is double size, etc.) If blank, a scaling factor of 1 will be used.
- Defined in src/types.ts:5652
text_string
Expression that evaluates to the text for the labels.
- Defined in src/types.ts:5644
x_column_name
Double, float or decimal expression that evaluates to the x coordinates of the center points of the labels.
- Defined in src/types.ts:5636
Optionalx_offset
Numeric expression that evaluates to the number of output pixels by which the labels will be offset horizontally from their specified x coordinates. If blank, an offset of 0 will be used.
- Defined in src/types.ts:5640
y_column_name
Double, float or decimal expression that evaluates to the y coordinates of the center points of the labels.
- Defined in src/types.ts:5638
Optionaly_offset
Numeric expression that evaluates to the number of output pixels by which the labels will be offset vertically from their specified y coordinates. If blank, an offset of 0 will be used.
- Defined in src/types.ts:5642
Boolean expression indicating whether boxes will be drawn around the labels. If blank, no boxes will be drawn.