Class: QgsVectorTileLabeling

Base class for labeling configuration classes for vector tile layers.

Added in version 3.14.

Class Hierarchy

Inheritance diagram of qgis.core.QgsVectorTileLabeling

Subclasses

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.

Methods

clone

Returns a new copy of the object

readXml

Reads labeling properties from given XML element

resolveReferences

Resolves references to other objects - second phase of loading - after readXml()

type

Unique type string of the labeling configuration implementation

writeXml

Writes labeling properties to given XML element

class qgis.core.QgsVectorTileLabeling[source]

Bases: object

clone(self) QgsVectorTileLabeling | None[source]

Returns a new copy of the object

Return type:

Optional[QgsVectorTileLabeling]

readXml(self, elem: QDomElement, context: QgsReadWriteContext)[source]

Reads labeling properties from given XML element

Parameters:
resolveReferences(self, project: QgsProject)[source]

Resolves references to other objects - second phase of loading - after readXml()

Parameters:

project (QgsProject)

type(self) str[source]

Unique type string of the labeling configuration implementation

Return type:

str

writeXml(self, elem: QDomElement, context: QgsReadWriteContext)[source]

Writes labeling properties to given XML element

Parameters: