Module layer

Source
Expand description

Vector tile layer drawing utilities.

StructsΒ§

BackgroundPaint
FillPaint
LinePaint
RasterPaint
Raster tile layer description
StyleLayer
Stores all the styles for a specific layer.
StyleLayerDef πŸ”’
SymbolPaint

EnumsΒ§

LayerPaint
The different types of paints.
RasterResampling
StyleProperty

FunctionsΒ§

extract_text_field_property πŸ”’
Extract the property name from a text-field template string like β€œ{NAME}” β†’ β€œNAME”. If no braces, returns the string as-is.
parse_text_field_from_layout πŸ”’
Extract a text-field property name from a layout JSON value. Handles both:
parse_text_size_from_layout πŸ”’
Extract text-size from a layout JSON value. Handles constant numbers and zoom-dependent {"stops": [[z, size], ...]}.