I would like to set Map Tips to display coordinates of some feature in custom selected CRS. When I do:

<b>X: </b>[% $x %]<br>
<b>Y: </b>[% $y %]

Tip displays coordinates in WGS84, but not in my current canvas CRS.


1 Answer 1


$x and $y takes coordinates directly from your data geometry (your data are in WGS), so it is project-independent. Probably you have set other CRS with on the fly reprojection, which could confuse you.

If you want display coordinates from data in other CRS, you have to use transform function like this:

<b>X: </b>[% x(transform($geometry,'EPSG:4326', 'EPSG:XXXX')) %]<br>
<b>Y: </b>[% y(transform($geometry,'EPSG:4326', 'EPSG:XXXX')) %]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.