Skip to content

Commit

Permalink
fix: coordinate search result's label should upate while typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Jan 31, 2025
1 parent 6dcc73c commit bb57d34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/ui/feature_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]]),
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit bb57d34

Please sign in to comment.