Skip to content

Commit

Permalink
feat(icherche): add route property (#740)
Browse files Browse the repository at this point in the history
* fix(feature-details) prevent error on feature without the routing span.

* feat(search-source): add routing directive to create route search results

* wip
  • Loading branch information
pelord authored Oct 8, 2020
1 parent c472640 commit 6ca26e7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/geo/src/lib/search/shared/sources/icherche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,14 @@ export class IChercheReverseSearchSource extends SearchSource
data.properties,
IChercheReverseSearchSource.propertiesBlacklist
);
return properties;

const routing: {
Route: string
} = {
Route: '<span class="routing"> <u>' + this.languageService.translate.instant('igo.geo.seeRouting') + '</u> </span>'
};

return Object.assign(properties, routing);
}

private computeExtent(
Expand Down

0 comments on commit 6ca26e7

Please sign in to comment.