mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
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
26 lines
935 B
JavaScript
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 };
|