qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.36k stars 2.98k forks source link

Map Layer Labels as Hyperlinks (e.g., in PDF and QGIS2Web outputs) #54574

Open mtreg opened 1 year ago

mtreg commented 1 year ago

Feature description

First - huge thanks to all of the devs and supporters of QGIS, making it the great software that it is!

Second - here's the feature request: Desired End Result: Labels on a map, based on the data from a specified layer, are hyperlinks when the map is exported (from the Print Composer) as a PDF or interactive map (e.g., via QGIS2Web)

Why: In a variety of instances, with people interacting with maps on computers (or mobile devices), even as PDFs, the desired purpose of a label is not only to give the users the label information per se (e.g., the name of the administrative unit), but to serve as a link to some content on the web with more information. For example, for a map of administrative units, it can be useful to have the links to go more information specifically related to those units (e.g., a government website, specific thematic content, etc.)

Current experience:

Additional context

Full email thread of pertinent discussion on the QGIS-User email list is here

What I'm hoping to achieve is basically something like shown in the image below, where each of the labels, visually formatted as a standard HTML-formatted hyperlink (based on the attribute values and label setting checked for "Allow HTML formatted"), functions as a hyperlink, especially in a PDF but also, ideally, in interactive maps such as those generated through QGIS2Web

image

eng-vitorchaves commented 1 month ago

Hi ! I have been searching for creating these labels hyperlinks, but also with no success.

Is there a way to solve this? Maybe using phyton?