Don't attempt to render when there is no source
This commit is contained in:
@@ -122,7 +122,7 @@ class CanvasTileLayerRenderer extends CanvasLayerRenderer {
|
||||
* @inheritDoc
|
||||
*/
|
||||
prepareFrame(frameState) {
|
||||
return true;
|
||||
return !!this.getLayer().getSource();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user