We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d79d96c commit afeb1a9Copy full SHA for afeb1a9
projects/ngx-openlayers/src/lib/sources/source.component.ts
@@ -14,7 +14,7 @@ export class SourceComponent implements OnDestroy {
14
constructor(protected host: LayerComponent, protected raster?: SourceRasterComponent) {}
15
16
ngOnDestroy() {
17
- if (this.host) {
+ if (this.host && this.host.instance) {
18
this.host.instance.setSource(null);
19
}
20
0 commit comments