mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
refactor: own application request operations and surface caches
This commit is contained in:
1 parent
310809e8f1
commit
ac977bd8bc
53 files changed
+4388
-3317
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { defaultSurface } from './surfaceServices.js';
|
||||
import { createApplicationFirms, firmsServices } from '../app/layers/firms.js';
|
||||
import { createSourceSlot } from '../app/sourceSlot.js';
|
||||
import {
|
||||
@@ -10,7 +11,9 @@ const sourceSlot = createSourceSlot(
|
||||
'Fire source',
|
||||
);
|
||||
export const configureFirmsSource = sourceSlot.configure;
|
||||
const helpers = createFirmsHelpers({ services: firmsServices });
|
||||
const helpers = createFirmsHelpers({
|
||||
services: { ...firmsServices, anchors: defaultSurface.anchors },
|
||||
});
|
||||
export const mapAnalystRecord = helpers.mapAnalystRecord;
|
||||
export const fireCullPosition = helpers.fireCullPosition;
|
||||
export const applyHorizonCull = helpers.applyHorizonCull;
|
||||
@@ -22,6 +25,7 @@ export const applyFirmsOverlayPolicy = helpers.applyFirmsOverlayPolicy;
|
||||
/** Retain the existing default feed and helper exports for direct callers. */
|
||||
export function createFirmsHeatmapLayer(options) {
|
||||
return createApplicationFirms({
|
||||
surface: defaultSurface,
|
||||
...options,
|
||||
feed: options.feed ?? sourceSlot.source,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user