mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 15:52:21 +00:00
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
This commit is contained in:
commit
d4434aa6d7
1489 files changed
+196442
-12353
No files matched your search
+6
-6
@@ -1,24 +1,24 @@
|
||||
import { createStandaloneApplication } from './standalone/application.js';
|
||||
import { describeError } from './standalone/errors.js';
|
||||
import { photonEndpointSetting } from './keylessGeocoder.js';
|
||||
import { t } from './i18n/index.js';
|
||||
|
||||
// PHOTON_URL: undefined when unset (public default), empty disables, else a URL.
|
||||
// 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 == null
|
||||
? {}
|
||||
: { endpoints: { photon: photonEndpointSetting(photonSetting) } },
|
||||
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 = `Error: ${describeError(error)}`;
|
||||
loaderStatus.textContent = t('Error: {message}', {
|
||||
message: describeError(error),
|
||||
});
|
||||
loaderStatus.style.color = '#ff4444';
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user