Class: QgsMapToolEmitPoint¶
A map tool that simply emits a point when clicking on the map.
Connecting a slot to its canvasClicked()
signal will let you
implement custom behavior for the passed in point.
Class Hierarchy¶
Base classes¶
Abstract base class for all map tools. Map tools are user interactive tools for manipulating the map canvas. For example map pan and zoom features are implemented as map tools. |
|
Signals
signal emitted on canvas click |
- class qgis.gui.QgsMapToolEmitPoint[source]¶
Bases:
QgsMapTool
- __init__(canvas: QgsMapCanvas | None)
constructor
- Parameters:
canvas (Optional[QgsMapCanvas])
- signal canvasClicked(point: QgsPointXY, button: Qt.MouseButton)[source]¶
signal emitted on canvas click
- Parameters:
point (QgsPointXY)
button (Qt.MouseButton)