Skip to content

Commit

Permalink
Fix transitions to default fill-outline-color
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jan 5, 2018
1 parent 5950e88 commit 9742bfd
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/style/properties.js
Expand Up @@ -547,7 +547,7 @@ class DataDrivenProperty<T> implements Property<T, PossiblyEvaluatedPropertyValu
}

// Special case hack solely for fill-outline-color.
if (a.value.value === undefined || a.value.value === undefined)
if (a.value.value === undefined || b.value.value === undefined)
return (undefined: any);

const interp: ?(a: T, b: T, t: number) => T = (interpolate: any)[this.specification.type];
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,66 @@
{
"version": 8,
"metadata": {
"test": {
"width": 64,
"height": 64,
"diff": 0.001,
"operations": [
[
"wait"
],
[
"setPaintProperty",
"fill",
"fill-outline-color",
null
],
[
"wait"
]
]
}
},
"sources": {
"geojson": {
"type": "geojson",
"data": {
"type": "Polygon",
"coordinates": [
[
[
-10,
-10
],
[
-10,
10
],
[
10,
10
],
[
10,
-10
],
[
-10,
-10
]
]
]
}
}
},
"layers": [
{
"id": "fill",
"type": "fill",
"source": "geojson",
"paint": {
"fill-outline-color": "black"
}
}
]
}

0 comments on commit 9742bfd

Please sign in to comment.