diff --git a/src/atlasViewer/atlasViewer.dataService.service.ts b/src/atlasViewer/atlasViewer.dataService.service.ts index 6a15513be0c424c13d630e995d776c78542dc9d0..c402f2e72ef2bdd62db433ca5fbd1f6ce4665c9f 100644 --- a/src/atlasViewer/atlasViewer.dataService.service.ts +++ b/src/atlasViewer/atlasViewer.dataService.service.ts @@ -127,8 +127,11 @@ export class AtlasViewerDataService implements OnDestroy{ }) .catch(console.error) }else if (templateSpace === 'Waxholm Rat V2.0'){ - return fetch('res/json/camillaWaxholmPointsAggregatedData.json') - .then(res => res.json()) + return Promise.all([ + fetch('res/json/waxholmPlaneAggregatedData.json').then(res => res.json()), + fetch('res/json/camillaWaxholmPointsAggregatedData.json').then(res => res.json()) + ]) + .then(arr => arr.reduce((acc,curr) => acc.concat(curr) ,[])) .then(arr => { this.store.dispatch({ type : FETCHED_SPATIAL_DATA,