How to make a hyperlink for a point layer in QGIS so that you can go to Google Maps.
I need to have a separate field when clicked it will show me that point on Google Maps.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityHow to make a hyperlink for a point layer in QGIS so that you can go to Google Maps.
I need to have a separate field when clicked it will show me that point on Google Maps.
Google Maps URL is like: https://www.google.de/maps/@52.3967404,1.4891383,12.04z
The first 2 numbers after maps/@ are you coordinates (lat, long). Be careful you have the correct order! The last number is just Zoom! Then you can do the following:
I found this answer to my question
'<a href="'||'https://www.google.co.uk/maps/place/' || to_string( y(transform( $geometry, 'EPSG:5563', 'EPSG:4326'))) || ',' || to_string( x( transform( $geometry, 'EPSG:5563', 'EPSG:4326'))) || '">Open Google Map</a>'