mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-22 03:02:20 +00:00
- Photo framing and FOLLOW claim the camera through the application's
navigation, injected with attachNavigation({ run, subscribeHandoff }):
aircraft and satellite tracking is released first, the cockpit refuses,
and FOLLOW stops when another feature takes the camera. No UI imports
in the layer.
- The mesh sampler follows the mesh floor's rules: it waits for the
visible tileset to finish streaming (visibleTilesetLoaded, now exposed
by the mesh floor service), needs a real bare-earth prior and keeps to
the shared meshFloorSampleWithinPrior window, which cameraFollow now
uses too. A cell is probed again once the camera is half as far from
it (down to 40 m), so a coarse early sample is replaced and redrawn.
- The MCP globe panel's CSP allows the Mapillary Graph API and its image
CDN (https://*.xx.fbcdn.net).
- The tile proxy reads bodies with the shared readResponseBytesCapped.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
23 lines
860 B
JavaScript
23 lines
860 B
JavaScript
import { createStreetLevelLayer } from '../../layers/streetLevel/index.js';
|
|
import { createMapillaryProvider } from '../../layers/streetLevel/providers/mapillary/index.js';
|
|
import * as sprites from '../../data/spriteOrder.js';
|
|
import * as picking from '../../data/pickRegistry.js';
|
|
import * as input from '../../data/inputOwnership.js';
|
|
import * as render from '../../renderGovernor.js';
|
|
|
|
/** A new provider registers here; its chip, credit and share bit follow. */
|
|
export function createApplicationStreetLevel({ surface, sources }) {
|
|
return createStreetLevelLayer({
|
|
providers: [createMapillaryProvider({ source: sources.mapillary })],
|
|
services: {
|
|
sprites,
|
|
picking,
|
|
input,
|
|
render,
|
|
ground: surface?.groundFloor ?? null,
|
|
meshFloor: surface?.meshFloor ?? null,
|
|
terrain: surface?.terrain ?? null,
|
|
},
|
|
});
|
|
}
|