Move surface placement into the globe and give it the fourth trigger

src/globe/surfacePlacement.js takes over the shared surface placer and
adds readSurface (tiles through sampleHeight, otherwise terrain, with a
plausibility range), surfaceTriggers (one subscription to camera moves,
tile loads, the photoreal switch and terrain revisions) and a forced full
pass. Points now re-place when the terrain provider changes, which they
did not before. GhostMaps, cables, OSM Places and Street Level move to the
new module unchanged.
This commit is contained in:
German Khokhlov committed 2026-11-10 16:13:06 +04:00
1 parent a90407d547
commit ef104aaac3
8 files changed
+410 -131

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import { bindOverlayHost } from '../../../overlays/bindOverlayHost.js';
import * as geo from '../../../geo/index.js';
import { isPointerFree } from '../../../data/inputOwnership.js';
import { rgbaFromCss } from '../../shared/color.js';
import { createSurfacePoints } from '../../shared/render/surfacePoints.js';
import { createSurfacePoints } from '../../../globe/surfacePlacement.js';
import {
featureLabel,
featureReference,