Class: QgsSnapIndicator¶
Class that shows snapping marker on map canvas for the current snapping match.
Methods
Returns whether the snapping indicator is visible |
|
Returns currently displayed snapping match |
|
Sets snapping match that should be displayed in map canvas. |
|
Sets whether the snapping indicator is visible |
- class qgis.gui.QgsSnapIndicator[source]¶
Bases:
object
- __init__(canvas: QgsMapCanvas | None)
Constructs an indicator for the given map canvas
- Parameters:
canvas (Optional[QgsMapCanvas])
- match(self) QgsPointLocator.Match [source]¶
Returns currently displayed snapping match
- Return type:
- setMatch(self, match: QgsPointLocator.Match)[source]¶
Sets snapping match that should be displayed in map canvas. Invalid match hides the indicator
- Parameters:
match (QgsPointLocator.Match)