Skip to content

Commit 8cbb325

Browse files
Highlight bugfix (#179)
1 parent 90da1b7 commit 8cbb325

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/src/app/constants/layers.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function getLayerFill(
130130
export function getHighlightLayerSpecification(
131131
sourceLayer: string,
132132
layerId: string,
133-
highlightUnassgned?: boolean
133+
highlightUnassigned?: boolean
134134
): LineLayerSpecification {
135135
return {
136136
id: layerId,
@@ -158,16 +158,15 @@ export function getHighlightLayerSpecification(
158158
],
159159
'line-width': [
160160
'case',
161-
['boolean', ['feature-state', 'broken'], false],
162-
0, // none when broken parent
163161
[
164162
'any',
165163
['boolean', ['feature-state', 'focused'], false],
166164
['boolean', ['feature-state', 'highlighted'], false],
167165
['all',
168166
// @ts-ignore correct logic, wrong types
169167
['==', ['feature-state', 'zone'], null],
170-
['boolean', !!highlightUnassgned]
168+
['boolean', !!highlightUnassigned],
169+
['!', ['boolean', ['feature-state', 'broken'], false]],
171170
]
172171
],
173172
3.5,

0 commit comments

Comments
 (0)