Skip to content

Commit 9b84e71

Browse files
ibesoragithub-actions[bot]
authored andcommitted
Fix multilinestrings not displaying labels correctly
GitOrigin-RevId: 1f9b8b4d077aec8fb1d116a6cb8137bf88a84357
1 parent 5a6343b commit 9b84e71

22 files changed

Lines changed: 87 additions & 2 deletions

File tree

src/symbol/mergelines.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ export default function (features: Array<SymbolFeature>): Array<SymbolFeature> {
5050
const geom = feature.geometry;
5151
const text = feature.text ? feature.text.toString() : null;
5252

53-
if (!text) {
53+
if (!text || geom.length > 1) {
5454
add(k);
5555
continue;
5656
}
5757

58-
const leftKey = getKey(text, geom),
58+
const leftKey = getKey(text, geom, false),
5959
rightKey = getKey(text, geom, true);
6060

6161
if ((leftKey in rightIndex) && (rightKey in leftIndex) && (rightIndex[leftKey] !== leftIndex[rightKey])) {
70.2 KB
Loading
81.8 KB
Loading
2.96 KB
Loading
100 KB
Loading
62.5 KB
Loading
68.6 KB
Loading
-110 KB
Loading
62.7 KB
Loading
-116 KB
Loading

0 commit comments

Comments
 (0)