Class: QgsVectorTileBasicLabeling

Basic labeling configuration for vector tile layers.

It contains a definition of a list of labeling styles, where each labeling style is a combination of sub-layer name, geometry type, filter expression, zoom range and label settings.

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorTileBasicLabeling

Base classes

QgsVectorTileLabeling

Base class for labeling configuration classes for vector tile layers.

Methods

setStyle

Updates style definition at the paricular index of the list (the index must be in interval [0,N-1] otherwise this function does nothing)

setStyles

Sets list of styles of the renderer

style

Returns style definition at the particular index

styles

Returns list of styles of the renderer

class qgis.core.QgsVectorTileBasicLabeling[source]

Bases: QgsVectorTileLabeling

setStyle(self, index: int, style: QgsVectorTileBasicLabelingStyle)[source]

Updates style definition at the paricular index of the list (the index must be in interval [0,N-1] otherwise this function does nothing)

Parameters:
setStyles(self, styles: Iterable[QgsVectorTileBasicLabelingStyle])[source]

Sets list of styles of the renderer

Parameters:

styles (Iterable[QgsVectorTileBasicLabelingStyle])

style(self, index: int) QgsVectorTileBasicLabelingStyle[source]

Returns style definition at the particular index

Parameters:

index (int)

Return type:

QgsVectorTileBasicLabelingStyle

styles(self) List[QgsVectorTileBasicLabelingStyle]

Returns list of styles of the renderer

Return type:

List[QgsVectorTileBasicLabelingStyle]