From a71443a0ef934ffc5783a80f55f7820bceda63e2 Mon Sep 17 00:00:00 2001 From: manjunath Date: Fri, 30 Oct 2026 21:06:13 +0530 Subject: [PATCH] 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. --- server/providers/regional/outlineSelect.js | 3 --- src/annotations/outlineRungs.js | 1 - 2 files changed, 4 deletions(-) diff --git a/server/providers/regional/outlineSelect.js b/server/providers/regional/outlineSelect.js index 37387161b..cdaead385 100644 --- a/server/providers/regional/outlineSelect.js +++ b/server/providers/regional/outlineSelect.js @@ -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, diff --git a/src/annotations/outlineRungs.js b/src/annotations/outlineRungs.js index 7461bd42c..5d8d3064b 100644 --- a/src/annotations/outlineRungs.js +++ b/src/annotations/outlineRungs.js @@ -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