Class: QgsVectorTileLabeling¶
Base class for labeling configuration classes for vector tile layers.
Added in version 3.14.
Class Hierarchy¶
Subclasses¶
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
Returns a new copy of the object |
|
Reads labeling properties from given XML element |
|
Resolves references to other objects - second phase of loading - after |
|
Unique type string of the labeling configuration implementation |
|
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:
elem (QDomElement)
context (QgsReadWriteContext)
- 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:
elem (QDomElement)
context (QgsReadWriteContext)