Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable user to select search channels #2126

Merged
merged 7 commits into from
Mar 7, 2023

Conversation

ZakarFin
Copy link
Member

@ZakarFin ZakarFin commented Feb 14, 2023

This adds a configuration button for search on map that allows users to select which data sources are used for searches. This requires explicit config for the SearchPlugin with:

{
  id: 'Oskari.mapframework.bundle.mapmodule.plugin.SearchPlugin',
  config: {
     allowOptions: true
  }
}

Works nicely with WFS-search channels, but needs more testing for merging. Also we might want to disable the choice for the user by configuration.

Selecting channels:
image

Toggles for non-default channels are colored differently and the "options" button is highlighted when search is done using non-default channels:
image

@ZakarFin
Copy link
Member Author

With non-wfs search channels if currently looks like this:
image

Tooltips are empty and everychannel is "default" channel (even the ones not in use). Also translations should be added since there is no UI for these.

@ZakarFin ZakarFin marked this pull request as ready for review March 7, 2023 16:00
@ZakarFin ZakarFin added this to the 2.11.0 milestone Mar 7, 2023
@ZakarFin ZakarFin merged commit 35f1460 into oskariorg:develop Mar 7, 2023
@ZakarFin ZakarFin deleted the search-channels branch March 7, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant