Class: QgsMapDecoration¶
- class qgis.core.QgsMapDecoration¶
Bases:
sip.wrapper
Interface for map decorations.
New in version 3.0.
QgsMapDecoration() Constructor for QgsMapDecoration.
QgsMapDecoration(
QgsMapDecoration
)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) –