Class: QgsVertexMarker¶
A class for marking vertices of features using e.g. circles or ‘x’.
Class Hierarchy¶
Base classes¶
An abstract class for items that can be placed on the map canvas.  | 
|
Methods
Returns the center point of the marker, in map coordinates.  | 
|
Returns the stroke color for the marker.  | 
|
Returns the fill color for the marker.  | 
|
Sets the center point of the marker, in map coordinates.  | 
|
Sets the stroke color for the marker.  | 
|
Sets the fill color for the marker.  | 
|
Attributes
- class qgis.gui.QgsVertexMarker[source]¶
 Bases:
QgsMapCanvasItem- ICON_BOX = 3¶
 
- ICON_CIRCLE = 4¶
 
- ICON_CROSS = 1¶
 
- ICON_DOUBLE_TRIANGLE = 5¶
 
- ICON_INVERTED_TRIANGLE = 8¶
 
- ICON_NONE = 0¶
 
- ICON_RHOMBUS = 7¶
 
- ICON_TRIANGLE = 6¶
 
- ICON_X = 2¶
 
- class IconType¶
 Bases:
int
- center(self) QgsPointXY[source]¶
 Returns the center point of the marker, in map coordinates.
See also
Added in version 3.18.
- Return type:
 
- color(self) QColor[source]¶
 Returns the stroke color for the marker.
See also
See also
- Return type:
 QColor
- fillColor(self) QColor[source]¶
 Returns the fill
colorfor the marker. This setting only applies to some icon types.See also
See also
- Return type:
 QColor
- setCenter(self, point: QgsPointXY)[source]¶
 Sets the center
pointof the marker, in map coordinates.See also
- Parameters:
 point (QgsPointXY)
- setColor(self, color: QColor | Qt.GlobalColor)[source]¶
 Sets the stroke
colorfor the marker.See also
See also
- Parameters:
 color (Union[QColor, Qt.GlobalColor])