I'd like to use callout/balloon labels for a vector layer in QGIS 2.0. The only way I can see to do this is to position an ordinary label where I want it and then draw an empty text annotation box behind the label. I've tried using an HTML annotation but I can't work our how to link to a feature attribute using HTML.

I understand that I could use [% "attribute name" %] in the label (this results in a blank label), but how do I include the layer name in the html?


3 Answers 3


Someone answered my question in a way that could help you using html annotations. QGIS html annotation relative paths under layer properties, display, you can insert the html to be displayed when hovering over features.



Essentially what it did was to create another layer of centroids and the label text. You moved the centroid to where you wanted it. There was no symbol for the points in that layer, they were invisible but the label was turned on and visible. Then the plugin could make a line between the new centroid and the old point position, creating a third layer of lines. These were formatted as arrows. I expect you could do the same manually. As a plugin, it just tidied all the steps into a workflow.

See also these plugins, to complete parts of the workflow




It is now (QGIS 3) possible using the Balloons label style Callout: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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