[Qgis-user] Label with HTML-expressions

Lene Fischer lfi at life.ku.dk
Tue Mar 26 20:25:09 PDT 2013


Yes - it works fine with the Open Action and the coloumn inserted, but it dosent work in Qgiscloud. Actions is not an option, and a lot of people don´t  know the action feature in QGIS. A simple link on a label i known from ex google maps.
This might looks stupid - but I want to publish a map in a blog, and also be able to link to further informations in additional page.

I learn a lot every time a ask a question - and my students gets the benefits from this.
So; Thanks you for your good advices - all of you!

Regards
Lene
________________________________
Fra: Nathan Woodrow [madmanwoo at gmail.com]
Sendt: 26. marts 2013 23:53
Til: Lene Fischer
Cc: qgis-user
Emne: Re: [Qgis-user] Label with HTML-expressions

Lene,

If you are talking about the hotlink stuff.  QGIS can do this using Layer Actions.  Have a look in the properties dialog under the Actions tab for the layer.

- Nathan


On Wed, Mar 27, 2013 at 1:30 AM, Lene Fischer <lfi at life.ku.dk<mailto:lfi at life.ku.dk>> wrote:
Hi Nathan
In MapInfo - at the top of Layercontrol there is a possibillity to set a link, so the map can be interactive.
In my case I would like to make the qgis map interactive to external links - and then upload to QGISCloud.
Regards
Lene
________________________________
Fra: Nathan Woodrow [madmanwoo at gmail.com<mailto:madmanwoo at gmail.com>]
Sendt: 26. marts 2013 14:22

Til: Lene Fischer
Cc: qgis-user
Emne: Re: [Qgis-user] Label with HTML-expressions

Lene,

HTML maps labels are not supported....yet. The example label is rendering the link because QLabels support HTML, which is used to preview the label result.

What would be you use case for having clickable labels in the map window? An interactive map?  I'm not sure MapInfo could do this.

- Nathan


On Tue, Mar 26, 2013 at 11:18 PM, Lene Fischer <lfi at life.ku.dk<mailto:lfi at life.ku.dk>> wrote:
Hi Nathan and Andreas
No it is not in the composer - even though it would be nice if the labels in the canvas AND in the printcomposer could be a link.

I´v e also tried the MapTip - with same result. I think it must be a "bug" because the example in the label shows the element as a normal link. It would be nice if it was there. Just as in MapInfo....

Regards
Lene
________________________________________
________________________________
Fra: Nathan Woodrow [madmanwoo at gmail.com<mailto:madmanwoo at gmail.com>]
Sendt: 26. marts 2013 14:14
Til: Lene Fischer
Cc: qgis-user

Emne: Re: [Qgis-user] Label with HTML-expressions

Lene,

Are you talking about HTML map labels or HTML composer labels?

- Nathan


On Tue, Mar 26, 2013 at 5:49 PM, Lene Fischer <lfi at life.ku.dk<mailto:lfi at life.ku.dk>> wrote:
I´ve tried to insert a HTML <a href> in the label-expression.
The url in coloumn 'www'
'<a href="[% "www" %]" target="_blank">link</a>'

The output example looks like a link (blue and underline), but when I look at the map - it is filled with  non interpreted text.

Is there a "render as HTML" label option I have overlooked?

Regards
Lene Fischer


_______________________________________________
Qgis-user mailing list
Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130327/e34db00e/attachment.html>


More information about the Qgis-user mailing list