[Qgis-developer] QGIS server renders tiled map annotations on every tile

HAUBOURG regis.haubourg at eau-adour-garonne.fr
Thu Feb 18 08:37:36 PST 2016


Thanks for that quick answer Alessandro.
I will just delete annotations.
Cheers
Régis

De : Alessandro Pasotti [mailto:apasotti at gmail.com]
Envoyé : jeudi 18 février 2016 17:26
À : HAUBOURG
Cc : QGIS Developer Mailing List
Objet : Re: [Qgis-developer] QGIS server renders tiled map annotations on every tile

2016-02-18 17:07 GMT+01:00 Régis Haubourg <regis.haubourg at eau-adour-garonne.fr<mailto:regis.haubourg at eau-adour-garonne.fr>>:
Hi,
I'm having some map annotation on some project, not pinned to a location. I
use it to let user see some informations about the map he is using (metadata
are to deeply hidden in project properties for that).
When asking qgis server to render tiles on any layer, every tile show the
annotation.
Is there an option to avoid that ? If not, should annotation been rendered
in Qgis server context?

Cheers
Régis

Hello,
from QGIS Server point of view, a tile is just a small map, it doesn't have any information about the fact that the tile will be patched to build a bigger map.
You should disable annotations from the project configuration if you are planning to serve the map as tiles.
If you want to keep that configurable, you might want to move annotations to a particular layer and selectively show/hide that layer depending on the requested image size, a simple Server plugin could be helpful in that case.

--
Alessandro Pasotti
w3:   www.itopen.it<http://cp.mcafee.com/d/k-Kr4x0idEIfLL8FzDPhOrKrhKejpd7bb1EVodET79ICzBBNdUSzssCOqemm3hO-rhKejd78VVYQsI6U-hBjyuJAaJN8wHZrbWxlK9szIqMx_eNd_HpvkaJNbAtzm4fVS9JMQsTtvIU_R-od7b3Z-LsKCOeoV6X1EVoLR4mlHFGTKNOEuvkzaT0QSyrhdTV5xdVYsyMCqejtPo0akWHv3FjdWJJaPD854hfBPrVEVuodwLQzh0qmM78OEngYPVZlLyqnjh00Ui3hwQgk-9DUCy2fMg-d3h1eh_E6y1nlzh1I8lDIVlxgQglwq8fc_4Iq89OfYSesdBbvo2frh>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160218/ef63ca8d/attachment-0001.html>


More information about the Qgis-developer mailing list