Class: QgsSnapIndicator¶
-
class
qgis.gui.
QgsSnapIndicator
(canvas: QgsMapCanvas)¶ Bases:
sip.wrapper
Constructs an indicator for the given map canvas
Class that shows snapping marker on map canvas for the current snapping match.
New in version 3.0: Enums
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
Signals
Attributes
-
isVisible
(self) → bool¶ Returns whether the snapping indicator is visible
-
match
(self) → QgsPointLocator.Match¶ Returns currently displayed snapping match
-
setMatch
(self, match: QgsPointLocator.Match)¶ Sets snapping match that should be displayed in map canvas. Invalid match hides the indicator
-
setVisible
(self, visible: bool = True)¶ Sets whether the snapping indicator is visible
-