mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +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
@@ -136,16 +136,18 @@ test('a point beside a building picks the nearest within 40 m, else none', () =>
|
||||
assert.equal(buildingFromTiles(tiles, { lat: 0.0001, lon: 0.0008 }), null);
|
||||
});
|
||||
|
||||
test('the open area enclosing the Capitol is its grounds, not a building', () => {
|
||||
const grounds = enclosingAreaFromTiles(TILES, CAPITOL);
|
||||
assert.ok(grounds, 'the park-like cover around the Capitol is found');
|
||||
assert.ok(
|
||||
grounds.areaM2 > 50_000 && grounds.areaM2 < 500_000,
|
||||
`${grounds.areaM2} m²`,
|
||||
);
|
||||
assert.equal(grounds.class, 'park');
|
||||
test('tile enclosure alone does not identify the named Capitol grounds', () => {
|
||||
assert.equal(
|
||||
enclosingAreaFromTiles(TILES, { ...CAPITOL, minAreaM2: 1e6 }),
|
||||
enclosingAreaFromTiles(TILES, { ...CAPITOL, name: 'Texas Capitol' }),
|
||||
null,
|
||||
'the former unlabeled enclosure is not an exact named answer',
|
||||
);
|
||||
assert.equal(
|
||||
enclosingAreaFromTiles(TILES, {
|
||||
...CAPITOL,
|
||||
name: 'Texas Capitol',
|
||||
minAreaM2: 1e6,
|
||||
}),
|
||||
null,
|
||||
'nothing grounds-sized above the floor',
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user