Skip to content

Commit 9f91080

Browse files
Update src/style/style.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0e54c08 commit 9f91080

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/style/style.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,8 @@ export class Style extends Evented {
13691369
}
13701370

13711371
if (isRasterStyleLayer(layer) && name === 'raster-fade-duration') {
1372-
this.tileManagers[layer.source].setRasterFadeDuration(value as number);
1372+
const defaultDuration = styleSpec.paint_raster['raster-fade-duration'].default;
1373+
this.tileManagers[layer.source].setRasterFadeDuration(value ?? defaultDuration);
13731374
}
13741375

13751376
this._changed = true;

0 commit comments

Comments
 (0)