From 718480a47953df7e05ea2610db4e69a26fe5e999 Mon Sep 17 00:00:00 2001 From: Merydian Date: Mon, 29 Jan 2024 11:03:48 +0100 Subject: [PATCH] feat: set alpha value of RubberBand --- ORStools/gui/ORStoolsDialog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ORStools/gui/ORStoolsDialog.py b/ORStools/gui/ORStoolsDialog.py index 55c769a7..793f4198 100644 --- a/ORStools/gui/ORStoolsDialog.py +++ b/ORStools/gui/ORStoolsDialog.py @@ -498,7 +498,9 @@ def create_rubber_band(self): self.rubber_band.reset() route_layer = router.route_as_layer(self) self.rubber_band = QgsRubberBand(self._iface.mapCanvas(), QgsWkbTypes.LineGeometry) - self.rubber_band.setStrokeColor(QColor(ROUTE_COLOR)) + color = QColor(ROUTE_COLOR) + color.setAlpha(100) + self.rubber_band.setStrokeColor(color) self.rubber_band.setWidth(5) features = route_layer.getFeatures()