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.
Methods
- rtype
QgsVectorTileLabeling
- param elem
Updates style definition at the paricular index of the list (the index must be in interval [0,N-1] otherwise this function does nothing)
Sets list of styles of the renderer
Returns style definition at the particular index
Returns list of styles of the renderer
- rtype
str
- param elem
-
clone
(self) → QgsVectorTileLabeling¶ - Return type
-
readXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
-
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
index (int) –
style (QgsVectorTileBasicLabelingStyle) –
-
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
-
styles
(self) → List[QgsVectorTileBasicLabelingStyle]¶ Returns list of styles of the renderer
- Return type
-
type
(self) → str¶ - Return type
str
-
writeXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –