Make rendercomplete work with vector sources without loader

This commit is contained in:
ahocevar
2018-10-24 18:37:51 +02:00
parent e8da3929d5
commit f82619d6d0
2 changed files with 9 additions and 2 deletions

View File

@@ -889,7 +889,7 @@ class VectorSource extends Source {
if (!alreadyLoaded) {
this.loader_.call(this, extentToLoad, resolution, projection);
loadedExtentsRtree.insert(extentToLoad, {extent: extentToLoad.slice()});
this.loading = true;
this.loading = this.loader_ !== VOID;
}
}
}