Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I usually use HTML templates in map files to show nicely formatted popups on my WMS layers with Openlayers. Here is the doc on templating with mapserver

I'd like to know if it is possible to do the same in GQIS Server and if yes how?

Thanks.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

There is a new functionality in QGIS Desktop > 1.8 (you need to download the master). You can add a HTML map tip or just choose one of the field to display.

I also installed the nightly build of QGIS Server on my ubuntu server and I set "useGetProjectSettings" to true in GlobalOption.js in QGIS Web Client.

I now can see the value of a chosen field in QGIS Web Client but HTML display doesn't work. I found that it will be implemented in a future release : http://osgeo-org.1560.x6.nabble.com/Label-with-HTML-expressions-tp5042897p5064207.html

I also found another way to get HTML template here : http://hub.qgis.org/issues/8370 but you need to define your HTML in GlobalOption.js and it has not been commited yet.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.