drop the unused Nominatim outline center

The server built center from Number(row.lat/lon), which reads a missing value as 0,0, and the client never forwarded it, so the rung's second ordering point was always undefined. Order parts by the request point only.
This commit is contained in:
manjunath committed 2026-10-30 21:06:13 +05:30
1 parent 3def533d8c
commit a71443a0ef
2 files changed
-4

No files matched your search

@@ -547,8 +547,6 @@ export function selectOutlineResult(rows, { kind, query }) {
skipped.push(`${label}: too large`);
continue;
}
const lat = Number(row.lat);
const lon = Number(row.lon);
return {
outline: {
name: String(row.name || '').slice(0, 160) || null,
@@ -559,7 +557,6 @@ export function selectOutlineResult(rows, { kind, query }) {
row.osm_type && row.osm_id != null
? `${row.osm_type}/${row.osm_id}`
: null,
center: finiteLat(lat) && finiteLon(lon) ? { lat, lon } : null,
polygons,
},
skipped,
-1
View File
@@ -262,7 +262,6 @@ export function createOutlineRungs({
if (!containsAnchor(outline.polygons, ctx.lat, ctx.lon)) return null;
const polygons = anchorPartFirst(outline.polygons, [
{ lat: ctx.lat, lon: ctx.lon },
outline.center || {},
]);
const ring = polygons[0][0];
// A grounds ask answered by a building-sized polygon found the named