Class: QgsAnnotationMarkerItem¶
An annotation item which renders a marker symbol at a point location.
Added in version 3.16.
Class Hierarchy¶
Base classes¶
Abstract base class for annotation items which are drawn with   | 
Methods
Returns the point geometry of the marker.  | 
|
Sets the point geometry location of the marker.  | 
|
Sets the symbol used to render the marker item.  | 
|
Returns the symbol used to render the marker item.  | 
Static Methods
Creates a new marker annotation item.  | 
- class qgis.core.QgsAnnotationMarkerItem[source]¶
 Bases:
QgsAnnotationItem- __init__(point: QgsPoint)
 Constructor for QgsAnnotationMarkerItem, at the specified
point.- Parameters:
 point (QgsPoint)
- static create() QgsAnnotationMarkerItem | None[source]¶
 Creates a new marker annotation item.
- Return type:
 Optional[QgsAnnotationMarkerItem]
- geometry(self) QgsPointXY[source]¶
 Returns the point geometry of the marker.
The coordinate reference system for the point will be the parent layer’s
QgsAnnotationLayer.crs().See also
- Return type:
 
- setGeometry(self, geometry: QgsPoint)[source]¶
 Sets the point
geometrylocation of the marker.The coordinate reference system for the point will be the parent layer’s
QgsAnnotationLayer.crs().See also
- Parameters:
 geometry (QgsPoint)
- setSymbol(self, symbol: QgsMarkerSymbol | None)[source]¶
 Sets the
symbolused to render the marker item.The item takes ownership of the symbol.
See also
- Parameters:
 symbol (Optional[QgsMarkerSymbol])
- symbol(self) QgsMarkerSymbol | None[source]¶
 Returns the symbol used to render the marker item.
See also
- Return type:
 Optional[QgsMarkerSymbol]