mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 18:34:02 +00:00
refactor: separate map feature queries and source records
This commit is contained in:
1 parent
a8125ad917
commit
bf1d50f29b
28 files changed
+1128
-675
No files matched your search
@@ -1,17 +1,21 @@
|
||||
import { normalizeOverpassFeatures } from '../sources/overpassFeaturesRecords.js';
|
||||
import { createAnnotationResolver } from './resolver.js';
|
||||
import { applicationServices } from '../services/application.js';
|
||||
const resolver = createAnnotationResolver({
|
||||
boundarySource: applicationServices.boundaries,
|
||||
featureSource: applicationServices.features,
|
||||
});
|
||||
export const {
|
||||
resolveAnnotationTarget,
|
||||
refineScope,
|
||||
isRateLimitedOutcome,
|
||||
isGroundsLikeAsk,
|
||||
selectFootprint,
|
||||
viewportBias,
|
||||
placesNearViewRecovery,
|
||||
resolveRegionRingForQuery,
|
||||
pickWorldFromScreen,
|
||||
sampleGroundHeight,
|
||||
} = resolver;
|
||||
|
||||
/** Compatibility adapter for callers supplying raw OSM fixtures. */
|
||||
export const selectFootprint = (elements, ...args) =>
|
||||
resolver.selectFootprint(normalizeOverpassFeatures(elements), ...args);
|
||||
Reference in new issue
Block a user