Files
gods-eye-view/src/main.js
T
manjunath d4434aa6d7 feat(outlines): restore voice outlines without public Overpass
use bundled place boundaries and shared OpenFreeMap tiles before a guarded Nominatim fallback

preserve multipart shapes, holes and cancellation,
and keep pending annotations visible while ground sampling finishes across frames

keep non-Latin name distinctions when selecting provider results,
and retain an outline anchor only when it lies in filled geometry
2026-10-27 13:24:02 +00:00

26 lines
935 B
JavaScript

import { createStandaloneApplication } from './standalone/application.js';
import { describeError } from './standalone/errors.js';
import { t } from './i18n/index.js';
// The Vite boundary exposes only undefined, null, or a validated URL.
const photonSetting = import.meta.env.PHOTON_URL;
const application = createStandaloneApplication({
googleApiKey: import.meta.env.GOOGLE_MAPS_API_KEY,
cesiumToken: import.meta.env.CESIUM_ION_TOKEN,
geospatial:
photonSetting === undefined ? {} : { endpoints: { photon: photonSetting } },
allowQaRegistration: import.meta.env.DEV,
});
application.start().catch((error) => {
console.error("God's Eye View initialization failed:", error);
const loaderStatus = document.querySelector('#loading-screen .loader-status');
loaderStatus.textContent = t('Error: {message}', {
message: describeError(error),
});
loaderStatus.style.color = '#ff4444';
});
export { application };