Skip to content

Commit

Permalink
Use SearchBox plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Sep 6, 2021
1 parent f972385 commit 3a450ae
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/img/search/dataproduct.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/img/search/feature.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"searchServiceUrl": "http://localhost:5011/",
"searchDataServiceUrl": "http://localhost:5011/geom/",
"editServiceUrl": "http://localhost:5012/",
"mapInfoService": "http://localhost:5016/",
"permalinkServiceUrl": "http://localhost:5018/",
Expand Down
2 changes: 2 additions & 0 deletions js/SearchProviders.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ export const SearchProviders = {
coordinates: {
labelmsgid: "search.coordinates",
onSearch: coordinatesSearch
/*
},
geoadmin: {
label: "Swisstopo",
Expand Down Expand Up @@ -487,6 +488,7 @@ export const SearchProviders = {
layers: {
label: "Layers",
onSearch: layerSearch
*/
}
};

Expand Down
4 changes: 2 additions & 2 deletions js/appConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import TaskButtonPlugin from 'qwc2/plugins/TaskButton';
import BackgroundSwitcherPlugin from 'qwc2/plugins/BackgroundSwitcher';
import TopBarPlugin from 'qwc2/plugins/TopBar';
import AppMenu from 'qwc2/components/AppMenu';
import Search from 'qwc2/components/Search';
import SearchBox from 'qwc2/components/SearchBox';
import Toolbar from 'qwc2/components/Toolbar';
import FullscreenSwitcher from 'qwc2/components/FullscreenSwitcher';
import BottomBarPlugin from 'qwc2/plugins/BottomBar';
Expand Down Expand Up @@ -78,7 +78,7 @@ export default {
BackgroundSwitcherPlugin: BackgroundSwitcherPlugin,
TopBarPlugin: TopBarPlugin({
AppMenu: AppMenu,
Search: Search(SearchProviders, searchProviderFactory),
Search: SearchBox(SearchProviders, searchProviderFactory),
Toolbar: Toolbar,
FullscreenSwitcher: FullscreenSwitcher
}),
Expand Down

0 comments on commit 3a450ae

Please sign in to comment.