13 Commits

Author SHA1 Message Date
Nyall Dawson
2bb4aad8c9 Fix callout rendering to rotated labels
Fixes #36681
2020-06-12 05:01:11 +10:00
Nyall Dawson
bcf9c828f9 [FEATURE][callouts] Add control over anchor point for callout on label
This gives users control over where a callout should join to the label
text. (Previously, you only had control over where the callout would
join to the corresponding feature geometry).

Choices include:
- Closest point (previous behavior)
- Label Centroid
- Fixed corners: Top left/top right/bottom left/bottom right/etc

Data defined control over the label anchor is also possible
2020-03-09 15:29:51 +10:00
Nyall Dawson
0d84e35839 Update test images 2019-12-15 10:18:47 +10:00
Nyall Dawson
4ddf31ef0b Test updates again 2019-12-10 18:28:11 +10:00
Nyall Dawson
25db33cc8e Update some label reference images 2019-12-10 18:28:11 +10:00
nirvn
b68a9c3b81 Add tests 2019-07-30 18:06:26 +07:00
Nyall Dawson
4d5fe9a086 [FEATURE][callouts] Add setting to allow callouts to be drawn to all parts
of a multi-part feature

Also data-definable!
2019-07-29 11:18:10 +10:00
nirvn
aab8e511bd [FEATURE][callouts] Allow specifying an offset from label area distance 2019-07-22 18:29:05 +07:00
Nyall Dawson
2b554d8bab [FEATURE][callouts] Allow specifying an offset from feature distance
which controls a distance from the feature where callout lines end

Makes for visually more appealing callouts vs drawing them right
up against the edges of features
2019-07-22 18:40:08 +10:00
nirvn
dded60611b [callouts] Add symbol-related variables to the expression context 2019-07-16 14:59:06 +07:00
Nyall Dawson
b01c5e1e0e Add test for other callout stacking option 2019-07-16 07:46:58 +10:00
Nyall Dawson
171f06447a [callouts] Ensure simple callouts are rendered below all map labels
...instead of being rendered on top of some. For this callout style,
we don't want callouts overlapping labels (rather the opposite). But
leave API in place to allow other callout styles to render below
their associated labels only, as this may be wanted for some styles
(e.g. balloon style callouts)
2019-07-16 07:46:58 +10:00
Nyall Dawson
86facfb620 Unit tests for callouts 2019-07-11 13:03:12 +10:00