We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e230a83 commit b8b5b8fCopy full SHA for b8b5b8f
src/data/program_configuration.ts
@@ -64,7 +64,11 @@ type SourceExpressionWithRawEvaluation = ZoomConstantExpression<'source'>;
64
type CompositeExpressionWithRawEvaluation = ZoomDependentExpression<'composite'>;
65
66
function getFillColorFallback(layer: TypedStyleLayer, property: string): FillColorFallback {
67
- return property === 'fill-outline-color' ? (layer.paint as any).get('fill-color').value : null;
+ if (property !== 'fill-outline-color' || layer.type !== 'fill') {
68
+ return null;
69
+ }
70
+
71
+ return layer.paint.get('fill-color').value;
72
}
73
74
function isNullColorEvaluationError(error: unknown): boolean {
0 commit comments