Class: QgsMapDecoration¶
Interface for map decorations.
Methods
Returns the map decoration display name. |
|
Returns |
|
Renders a map decoration. |
|
Sets the map decoration display name. |
- class qgis.core.QgsMapDecoration[source]¶
Bases:
object- displayName(self) str[source]¶
Returns the map decoration display name.
Added in version 3.14.
- Return type:
str
- hasFixedMapPosition(self) bool[source]¶
Returns
Trueif the decoration is attached to a fixed map position (e.g grid, layout extent), orFalseif the annotation uses a position relative to the map canvas (e.g. title, copyright…)Added in version 3.34.
- Return type:
bool
- render(self, mapSettings: QgsMapSettings, context: QgsRenderContext)[source]¶
Renders a map decoration.
- Parameters:
mapSettings (QgsMapSettings)
context (QgsRenderContext)