mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
refactor(app): share application components and request services
This commit is contained in:
1 parent
a0a0128a59
commit
a67bc60a29
84 files changed
+2798
-1731
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { createSourceSlot } from '../app/sourceSlot.js';
|
||||
import { createBikeshareSource } from '../layers/bikeshare/source.js';
|
||||
import { createBikeshareLayer } from '../layers/bikeshare/index.js';
|
||||
import * as render from '../renderGovernor.js';
|
||||
@@ -5,8 +6,14 @@ import * as sprites from './spriteOrder.js';
|
||||
import * as picking from './pickRegistry.js';
|
||||
import * as overlays from '../overlays/worldOverlay.js';
|
||||
|
||||
const sourceSlot = createSourceSlot(
|
||||
createBikeshareSource(),
|
||||
['getStations'],
|
||||
'Bikeshare source',
|
||||
);
|
||||
export const configureBikeshareSource = sourceSlot.configure;
|
||||
const layer = createBikeshareLayer({
|
||||
source: createBikeshareSource(),
|
||||
source: sourceSlot.source,
|
||||
services: { render, sprites, picking, overlays },
|
||||
});
|
||||
export const createBikeshareSelectedOverlayEntry =
|
||||
|
||||
Reference in new issue
Block a user