|
|
@@ -279,9 +279,12 @@ export class AdjusterService {
|
|
|
}
|
|
|
|
|
|
processIndex(codeRecordRelations: Record<string, unknown>): void {
|
|
|
- if (obce.getState() !== 'ready') {
|
|
|
- obce.once('featuresloadend', () =>
|
|
|
- this.processIndex(codeRecordRelations)
|
|
|
+ if (obce.getFeatures()?.length < 1) {
|
|
|
+ this.hsUtilsService.debounce(
|
|
|
+ this.processIndex(codeRecordRelations),
|
|
|
+ 300,
|
|
|
+ false,
|
|
|
+ this
|
|
|
);
|
|
|
return;
|
|
|
}
|
|
|
@@ -316,12 +319,13 @@ export class AdjusterService {
|
|
|
method: MethodDescription,
|
|
|
codeRecordRelations: Record<string, unknown>
|
|
|
): void {
|
|
|
- if (method.layer?.getSource().getState() !== 'ready') {
|
|
|
- method.layer
|
|
|
- .getSource()
|
|
|
- .once('featuresloadend', () =>
|
|
|
- this.processClusters(method, codeRecordRelations)
|
|
|
- );
|
|
|
+ if (method.layer?.getSource().getFeatures()?.length < 1) {
|
|
|
+ this.hsUtilsService.debounce(
|
|
|
+ this.processClusters(method, codeRecordRelations),
|
|
|
+ 300,
|
|
|
+ false,
|
|
|
+ this
|
|
|
+ );
|
|
|
return;
|
|
|
}
|
|
|
let errs = 0;
|