From bb57d34413652a00ba825d42481637fc055c66ae Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Fri, 31 Jan 2025 15:58:30 +0100 Subject: [PATCH] fix: coordinate search result's label should upate while typing --- modules/ui/feature_list.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/feature_list.js b/modules/ui/feature_list.js index 6a1dd7932..9e8a3df46 100644 --- a/modules/ui/feature_list.js +++ b/modules/ui/feature_list.js @@ -129,7 +129,7 @@ export function uiFeatureList(context) { if (locationMatch) { var loc = [Number(locationMatch[0]), Number(locationMatch[1])]; result.push({ - id: -1, + id: loc[0] + '/' + loc[1], geometry: 'point', type: t('inspector.location'), name: dmsCoordinatePair([loc[1], loc[0]]), @@ -334,14 +334,14 @@ export function uiFeatureList(context) { function mouseover(d3_event, d) { - if (d.id === -1) return; + if (d.location !== undefined) return; utilHighlightEntities([d.id], true, context); } function mouseout(d3_event, d) { - if (d.id === -1) return; + if (d.location !== undefined) return; utilHighlightEntities([d.id], false, context); }