Skip to content

Commit

Permalink
Add search-ui support to SearchSpatialInputAction
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Dec 7, 2023
1 parent 460d6fc commit 531c454
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main/js/apps/sample/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"map-init",
"mapnavigation",
"notifier",
"omnisearch",
"search-ui",
"popups-default",
"selection-resultcenter",
"selection-tools",
Expand Down Expand Up @@ -126,15 +126,12 @@
"suggestContains": true
},
"useIn": [
"omnisearch",
"search",
"selection-actions-area"
],
"priority": 2,
"omniSearchLabelAttr": "kreis_name",
"omniSearchSearchAttr": "kreis_name",
"omniSearchTypingDelay": 500,
"omniSearchPageSize": 20,
"omniSearchDefaultLabel": "Kreis suchen ..."
"searchLabel": "kreis_name",
"searchAttribute": "kreis_name"
},
{
"id": "bundeslaender",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export default class SearchSpatialInputAction {
this._input = item;
}

// search-api handle method
_handleSearchApiResult(evt) {
this._input = evt.getProperty("item");
}

// hierarchical search handle method
_handleHierarchicalSearchResult(evt) {
this._input = evt.getProperty("result");
Expand Down
4 changes: 4 additions & 0 deletions src/main/js/bundles/dn_selectionactions/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@
{
"topic": "dn_hierarchicalsearch/RESULT",
"method": "_handleHierarchicalSearchResult"
},
{
"topic": "search-api/SELECTED",
"method": "_handleSearchApiResult"
}
]
},
Expand Down

0 comments on commit 531c454

Please sign in to comment.