Class: QgsVectorTileBasicLabeling

class qgis.core.QgsVectorTileBasicLabeling

Bases: QgsVectorTileLabeling

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.

New in version 3.14:

Methods

clone

rtype:

QgsVectorTileLabeling

readXml

param elem:

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

type

rtype:

str

writeXml

param elem:

clone(self) QgsVectorTileLabeling
Return type:

QgsVectorTileLabeling

readXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters:
setStyle(self, index: int, style: QgsVectorTileBasicLabelingStyle)

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])

Sets list of styles of the renderer

Parameters:

styles (Iterable[QgsVectorTileBasicLabelingStyle]) –

style(self, index: int) QgsVectorTileBasicLabelingStyle

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]

type(self) str
Return type:

str

writeXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters: