Skip to main content

Interface: ContourLabelOptions

Defined in: Contour.ts:212

Options for ContourLabels

Properties

PropertyTypeDescriptionDefined in
density?numberLabel density. 2 makes the labels twice as dense, 0.5 makes them half as dense. Default 1Contour.ts:258
font_face?stringFont face to use for the contour labels Default 'Trebuchet MS'Contour.ts:223
font_size?numberFont size in points to use for the contour labels Default 12Contour.ts:229
font_url_template?stringURL template to use in retrieving the font data for the labels. The default is to use the template from the map style.Contour.ts:234
halo?booleanWhether to draw the halo (outline) on the contour labels Default falseContour.ts:252
halo_color?stringHalo (outline) color for the contour labels Default '#000000'Contour.ts:246
n_decimal_places?numberNumber of decimal places to use in the contour labels Default 0Contour.ts:217
text_color?stringText color for the contour labels Default '#000000'Contour.ts:240