mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +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
@@ -1,28 +1,8 @@
|
||||
// PHOTON_URL: unset keeps the public default, empty disables, else a URL.
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { photonEndpointSetting } from '../keylessGeocoder.js';
|
||||
import { createDefaultPlaceSearch } from './defaults.js';
|
||||
|
||||
test('the Photon setting reads unset, disabled and operator values', () => {
|
||||
assert.equal(photonEndpointSetting(undefined), undefined);
|
||||
for (const off of [
|
||||
'',
|
||||
' ',
|
||||
'off',
|
||||
'none',
|
||||
'disabled',
|
||||
'not a url',
|
||||
'ftp://x.test/',
|
||||
'https://u:[email protected]/api/',
|
||||
])
|
||||
assert.equal(photonEndpointSetting(off), null, off);
|
||||
assert.equal(
|
||||
photonEndpointSetting('https://photon.example.test/api/'),
|
||||
'https://photon.example.test/api/',
|
||||
);
|
||||
});
|
||||
|
||||
async function hosts(endpoints) {
|
||||
const asked = [];
|
||||
const search = createDefaultPlaceSearch({
|
||||
@@ -35,7 +15,7 @@ async function hosts(endpoints) {
|
||||
);
|
||||
},
|
||||
});
|
||||
await search.geocode(`nowhere-${Math.random()}`);
|
||||
await search.geocode('nowhere-photon-setting');
|
||||
return asked;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user