@@ -287,7 +287,7 @@ export class SearchBarComponent implements OnInit, OnDestroy {
287
287
const configValue = this . configService . getConfig (
288
288
'searchBar.showSearchButton'
289
289
) ;
290
- this . showSearchButton = configValue !== undefined ? configValue : false ;
290
+ this . showSearchButton = true ;
291
291
}
292
292
293
293
/**
@@ -495,10 +495,6 @@ export class SearchBarComponent implements OnInit, OnDestroy {
495
495
}
496
496
}
497
497
498
- /**
499
- * When the user clicks on the magnifying glass and
500
- * this find the first object on the map
501
- */
502
498
selectFirstElement ( ) {
503
499
const results = this . store . all ( ) ;
504
500
// find the highest result score
@@ -525,12 +521,9 @@ export class SearchBarComponent implements OnInit, OnDestroy {
525
521
526
522
if ( dataType === FEATURE ) {
527
523
const feature = ( result as SearchResult < Feature > ) . data ;
528
- map . searchResultsOverlay . setFeatures (
529
- [ feature ] satisfies Feature [ ] ,
530
- FeatureMotion . Default
531
- ) ;
524
+ map . searchResultsOverlay . setFeatures ( [ feature ] , FeatureMotion . Default ) ;
532
525
} else if ( dataType === LAYER ) {
533
- const layerOptions = ( result as SearchResult < LayerOptions > ) . data ;
526
+ const layerOptions = result . data as LayerOptions ;
534
527
if ( layerOptions . sourceOptions . optionsFromApi === undefined ) {
535
528
layerOptions . sourceOptions . optionsFromApi = true ;
536
529
}
0 commit comments