From 6ca26e7a95432522e402bf97b23741eff569eca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= <7397743+pelord@users.noreply.github.com> Date: Thu, 8 Oct 2020 14:48:51 -0400 Subject: [PATCH] feat(icherche): add route property (#740) * fix(feature-details) prevent error on feature without the routing span. * feat(search-source): add routing directive to create route search results * wip --- packages/geo/src/lib/search/shared/sources/icherche.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/geo/src/lib/search/shared/sources/icherche.ts b/packages/geo/src/lib/search/shared/sources/icherche.ts index c705259fd1..e7c5fc1653 100644 --- a/packages/geo/src/lib/search/shared/sources/icherche.ts +++ b/packages/geo/src/lib/search/shared/sources/icherche.ts @@ -803,7 +803,14 @@ export class IChercheReverseSearchSource extends SearchSource data.properties, IChercheReverseSearchSource.propertiesBlacklist ); - return properties; + + const routing: { + Route: string + } = { + Route: ' ' + this.languageService.translate.instant('igo.geo.seeRouting') + ' ' + }; + + return Object.assign(properties, routing); } private computeExtent(