mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
refactor: construct application layers from supplied sources
This commit is contained in:
1 parent
cd704d0e9b
commit
8160ac5fe4
53 files changed
+1152
-400
No files matched your search
@@ -1,17 +1,8 @@
|
||||
import { createVesselLayer } from '../layers/vessels/index.js';
|
||||
import { createAisStreamSource } from '../sources/live/standalone.js';
|
||||
import * as context from './contextStore.js';
|
||||
import * as trails from './trailRenderer.js';
|
||||
import * as labels from './detectionDraw.js';
|
||||
import * as picking from './pickRegistry.js';
|
||||
import * as overlay from '../overlays/worldOverlay.js';
|
||||
import * as geoid from './geoid.js';
|
||||
import * as sprites from './spriteOrder.js';
|
||||
import * as focus from './focusDeemphasis.js';
|
||||
import * as worldFocus from '../worldFocus.js';
|
||||
import * as render from '../renderGovernor.js';
|
||||
import { createApplicationVessels } from '../app/layers/aisLiveVessels.js';
|
||||
|
||||
const aisLiveVesselsLayer = createVesselLayer({
|
||||
import { createAisStreamSource } from '../sources/live/standalone.js';
|
||||
|
||||
const aisLiveVesselsLayer = createApplicationVessels({
|
||||
source: createAisStreamSource({
|
||||
apiUrl: import.meta.env?.VITE_AIS_LIVE_API_URL || '/api/ais-live',
|
||||
}),
|
||||
@@ -19,18 +10,6 @@ const aisLiveVesselsLayer = createVesselLayer({
|
||||
maxRows: import.meta.env?.VITE_AIS_LIVE_MAX_ROWS,
|
||||
maxLabels: import.meta.env?.VITE_AIS_LIVE_LABEL_MAX_ROWS,
|
||||
},
|
||||
services: {
|
||||
context,
|
||||
trails,
|
||||
labels,
|
||||
picking,
|
||||
overlay,
|
||||
geoid,
|
||||
sprites,
|
||||
focus,
|
||||
worldFocus,
|
||||
render,
|
||||
},
|
||||
});
|
||||
export { AIS_FIRST_CONNECT_GRACE_MS } from '../layers/vessels/policy.js';
|
||||
export const deriveAisFeedError = aisLiveVesselsLayer.deriveAisFeedError;
|
||||
|
||||
Reference in new issue
Block a user