diff --git a/src/main/js/apps/sample/app.json b/src/main/js/apps/sample/app.json index 9376ea9..3d35de7 100644 --- a/src/main/js/apps/sample/app.json +++ b/src/main/js/apps/sample/app.json @@ -14,7 +14,7 @@ "map-init", "mapnavigation", "notifier", - "omnisearch", + "search-ui", "popups-default", "selection-resultcenter", "selection-tools", @@ -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", diff --git a/src/main/js/bundles/dn_selectionactions/actions/SearchSpatialInputAction.js b/src/main/js/bundles/dn_selectionactions/actions/SearchSpatialInputAction.js index 52fd9f3..a83bb95 100644 --- a/src/main/js/bundles/dn_selectionactions/actions/SearchSpatialInputAction.js +++ b/src/main/js/bundles/dn_selectionactions/actions/SearchSpatialInputAction.js @@ -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"); diff --git a/src/main/js/bundles/dn_selectionactions/manifest.json b/src/main/js/bundles/dn_selectionactions/manifest.json index b357875..cbd5afa 100644 --- a/src/main/js/bundles/dn_selectionactions/manifest.json +++ b/src/main/js/bundles/dn_selectionactions/manifest.json @@ -118,6 +118,10 @@ { "topic": "dn_hierarchicalsearch/RESULT", "method": "_handleHierarchicalSearchResult" + }, + { + "topic": "search-api/SELECTED", + "method": "_handleSearchApiResult" } ] },