From 2155efae2048cbbca712717b3f5e461d870287c8 Mon Sep 17 00:00:00 2001 From: "john.schaap@kadaster.nl" Date: Fri, 19 Jul 2024 15:56:58 +0200 Subject: [PATCH] improve search type ahead --- projects/vectortile-demo/src/app/search/search.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/vectortile-demo/src/app/search/search.component.ts b/projects/vectortile-demo/src/app/search/search.component.ts index f38b593..556aba9 100644 --- a/projects/vectortile-demo/src/app/search/search.component.ts +++ b/projects/vectortile-demo/src/app/search/search.component.ts @@ -54,7 +54,7 @@ export class SearchComponent implements OnInit { const ogc = this.locationService.OgcAPI if (ogc) { const t = this.findTokens(search, ogc.lokaalIdRegex) - if (t.length > 0) { + if (t.length > 6) { const lokaalid = t[0] this.$ids = this.idlookupService.existsId(ogc.url, lokaalid) }