QGIS/tests/testdata/test_html_feature.html
Nyall Dawson c22f5de690 Port annotation feature handling to QgsAnnotation
Not an ideal implementation (too much logic resides in the
gui QgsMapCanvasAnnotationItem class), but any approach
using current api will be dependant on some hacks.

Ideally we need a QgsVectorDataProvider method for finding
the closest feature(s) to a point(/line/polygon) within a
certain tolerance, with provider specific implementations
which offload this to the data store's spatial indices.
Then this handling could be bumped up to reside in
QgsAnnotation.
2017-01-30 08:39:47 +10:00

42 lines
703 B
HTML

<html>
<head>
<style>
body
{
background-color: transparent;
margin: 6px;
padding: 0px;
}
table
{
width: 300px;
border-spacing: 6px;
margin: 0px;
padding: 0px;
}
table tr
{
height: 40px;
}
table td
{
border: 2px solid black;
font-family: arial;
font-size: 18px;
font-weight: bold;
}
tr.row1
{
background-color: yellow;
}
</style>
</head>
<body>
<table>
<tbody>
<tr class="row1"><td>[% "station" %]</td><td>[% "suburb" %]</td></tr>
</tbody>
</table>
</body>
</html>