I have a layer of reference grid lines on top of several map layers. The grid lines should be labeled with coordinate values: vertical grid lines with x-values and horizontal lines with y-values. The label position should be at the border of the current mapcanvas extent.
I was unable to write an expression which uses mapCanvas().extent() due to illegal characters (the dot) . Geometry properties only will not return these coordinates.
My idea so far: creating point features at the intersection of grid lines and map extent triggered by extentChanged event, and labeling these points.
Has somebody a better idea?