-
Notifications
You must be signed in to change notification settings - Fork 197
HARP-12581: Fix render order for labels #1980
Conversation
atomicsulfate
commented
Nov 19, 2020
•
edited
Loading
edited
- Set Render order from the technique in TextElement or PoiInfo.
- Use DataSource.dataSourceRenderOrder to compose with Technique's renderOrder into a single bigint renderOrder.
- Add unit and IBCT tests cases.
81eb415
to
320dbec
Compare
1962ade
to
096d992
Compare
5a41146
to
a0aba71
Compare
…der computation. Mix dataSourceOrder and the renderOrder from the technique in a bigint.
Codecov Report
@@ Coverage Diff @@
## master #1980 +/- ##
==========================================
+ Coverage 66.20% 66.24% +0.04%
==========================================
Files 295 295
Lines 26246 26281 +35
Branches 5910 5919 +9
==========================================
+ Hits 17376 17410 +34
- Misses 8870 8871 +1
Continue to review full report at Codecov.
|
a0aba71
to
57878a4
Compare
57878a4
to
b26ca26
Compare
private readonly m_styleCache: TileTextStyleCache | ||
) {} | ||
private readonly m_styleCache: TileTextStyleCache, | ||
private readonly m_baseRenderOrder: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw that later in the tests, you pass a lot of zeros for the baseRenderOrder, maybe you can default to 0 instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rather pass the extra zeros explicitely in the test. Having a default value has the risk that someone forgets to pass the datasourceOrder.
…with decimals. - finalRenderOrder = dataSourceOrder * 10^7 + renderOrder - Warn if render order values are too big
ca160f5
to
e3de4b0
Compare