Don't attempt to render when there is no source

This commit is contained in:
Andreas Hocevar
2019-09-24 17:37:22 +02:00
parent 66746a61bb
commit 3ed1a433fb

View File

@@ -122,7 +122,7 @@ class CanvasTileLayerRenderer extends CanvasLayerRenderer {
* @inheritDoc
*/
prepareFrame(frameState) {
return true;
return !!this.getLayer().getSource();
}
/**