Class: QgsMapDecoration¶
- class qgis.core.QgsMapDecoration¶
Bases:
sip.wrapper
Constructor for QgsMapDecoration.
QgsMapDecoration(
QgsMapDecoration
)Interface for map decorations.
Methods
Returns the map decoration display name.
Renders a map decoration.
Sets the map decoration display
name
.- displayName(self) → str¶
Returns the map decoration display name.
New in version 3.14.
- Return type
str
- render(self, mapSettings: QgsMapSettings, context: QgsRenderContext)¶
Renders a map decoration.
- Parameters
mapSettings (QgsMapSettings) –
context (QgsRenderContext) –
- setDisplayName(self, name: str)¶
Sets the map decoration display
name
.New in version 3.14.
- Parameters
name (str) –