Skip to content

Commit

Permalink
Fix the init code to only complete once the manifest is loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Clark authored and bhousel committed Oct 30, 2024
1 parent 076c372 commit 4b36073
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/services/OvertureService.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ export class OvertureService extends AbstractSystem {
const context = this.context;
const vtService = context.services.vectortile;

return Promise.resolve(vtService.initAsync()).then( () => {
//other init here after the vector tile service is done initializing
this._loadS3Catalog();

});
return Promise.all([
vtService.initAsync(),
this._loadS3Catalog()
]);
}


Expand Down Expand Up @@ -108,7 +107,7 @@ export class OvertureService extends AbstractSystem {
}
}


getData(datasetID) {
const vtService = this.context.services.vectortile; // 'mapwithai' or 'esri'

Expand Down

0 comments on commit 4b36073

Please sign in to comment.