We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90da1b7 commit 8cbb325Copy full SHA for 8cbb325
app/src/app/constants/layers.ts
@@ -130,7 +130,7 @@ export function getLayerFill(
130
export function getHighlightLayerSpecification(
131
sourceLayer: string,
132
layerId: string,
133
- highlightUnassgned?: boolean
+ highlightUnassigned?: boolean
134
): LineLayerSpecification {
135
return {
136
id: layerId,
@@ -158,16 +158,15 @@ export function getHighlightLayerSpecification(
158
],
159
'line-width': [
160
'case',
161
- ['boolean', ['feature-state', 'broken'], false],
162
- 0, // none when broken parent
163
[
164
'any',
165
['boolean', ['feature-state', 'focused'], false],
166
['boolean', ['feature-state', 'highlighted'], false],
167
['all',
168
// @ts-ignore correct logic, wrong types
169
['==', ['feature-state', 'zone'], null],
170
- ['boolean', !!highlightUnassgned]
+ ['boolean', !!highlightUnassigned],
+ ['!', ['boolean', ['feature-state', 'broken'], false]],
171
]
172
173
3.5,
0 commit comments