I have a road layer and
"NAME" field. I activated labels, but I don't want to show the labels outside the raster in map canvas (not layout). The raster area is my study area (you can see a part of it below). QGIS becomes slow in rendering labels when all labels are displayed. I reviewed the label settings. I couldn't find a setting related to this.
How can I limit the area to be labeled to the raster extent? Clipping the road layer by the raster extent is not an option here.