Disable opacity transition for raster source sources

This commit is contained in:
ahocevar
2019-04-17 17:38:50 -07:00
parent 251fc79484
commit 887d8e8a90
4 changed files with 4 additions and 8 deletions

View File

@@ -288,8 +288,7 @@ class RasterSource extends ImageSource {
frameState.focus = center;
frameState.size[0] = Math.round(getWidth(extent) / resolution);
frameState.size[1] = Math.round(getHeight(extent) / resolution);
frameState.time = Date.now();
frameState.animate = false;
frameState.time = Infinity;
const viewState = frameState.viewState;
viewState.center = center;