[Qgis-user] Label with HTML-expressions
Bernhard Ströbl
bernhard.stroebl at jena.de
Tue Mar 26 23:54:44 PDT 2013
Hi Lene,
QGISCloud uses qgis-web-client.
qgis-web-client itself can handle links but the links must be defined in
the data (i.e. a field that contains the link). If the user uses the
info button and clicks on a map feature the feature's data are shown. If
there is a link you can follow it. Even if the labels in QGIS desktop
_would_ work as links they would not in qgis-web-browser because the
whole map is rendered as pixel graphic (wms).
Note: qgis-web-client must be a recent version (no idea which version
QGISCloud is running, check with them)
Bernhard
Am 27.03.2013 04:25, schrieb Lene Fischer:
> 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
>
>
>
>
>
>
>
>
>
__________ Information from ESET Mail Security, version of virus signature database 8165 (20130326) __________
The message was checked by ESET Mail Security.
http://www.eset.com
More information about the Qgis-user
mailing list