[Qgis-user] How to personalize popup (hoverPopup) content in qgis-web-client?

Andreas Neumann a.neumann at carto.net
Thu Sep 12 10:30:27 PDT 2013


Antonio. As I said, the HTML expression is not yet supported. You can just display a single field or all fields (on click). To display HTML code like in the Uster example you have to write everything you want in a single field. You can use the field calculator for this purpose or a database view.

We hope to support the HTML expression soon.

Andreas



Antonio Vico <avicomartin at gmail.com> schrieb:
>Hi Andreas,
>
>I have tested set up the display field and it works, but only show the 
>field selected (I want more than one field, like the sample I mentioned
>
>in my first email). If I use the HTML option, in qgis client work fine 
>but in qgis-web-client not (only show layer name).
>
>
>On 12/09/13 13:53, Andreas Neumann wrote:
>> Hi Antonio,
>>
>> In newer webclient/server releases you also have to set up the
>display
>> field in the layer properties --> display tab.
>>
>> There are plans to also support the HTML expressions, but up to now
>they
>> are not yet supported.
>>
>> Let me know if it still does not work after you set the display field
>in
>> QGIS desktop.
>>
>> Thanks,
>> Andreas
>>
>> Am 12.09.2013 12:43, schrieb Antonio Vico:
>>> Hi all,
>>>
>>> I try to personalize hoverPopup contents like this sample:
>>>
>>>
>http://webgis.uster.ch/maps/stadtentwaesserung/wc_anlagen?format=image/jpeg&visibleLayers=WC-Anlagen,Gemeindegrenze,Pixelkarten%20und%20%C3%9Cbersichtsplan&searchtables=&startExtent=692000,241500,700100,249000&maxExtent=692000,241500,700100,249000
>>>
>>>
>>> but I can't do it (In my tests only show name layer qgis 1.8 and
>name
>>> layer and ).
>>>
>>> Reading FeatureInfoDisplay.js file, comments say that hoverPopup can
>>> display the field named "toolbox" but I have tested to create
>"toolbox"
>>> field in my sample but in hoverPopup only layer name appear
>(contents in
>>> toolbox field are missing).
>>>
>>> In this same file, the showFeatureInfoHover function use 'tooltip'
>>> attribute and I tested again with a field named "tooltip" in my data
>>> sample but content not show.
>>>
>>> Can somebody explain how to include data in hoverPopup?
>>>
>>>
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>_______________________________________________
>Qgis-user mailing list
>Qgis-user at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130912/11dedbd5/attachment.html>


More information about the Qgis-user mailing list