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

Introduces SearchResultDrawer #1943

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Introduces SearchResultDrawer #1943

wants to merge 2 commits into from

Conversation

KaiVolland
Copy link
Member

This introduces the SearchResultDrawer.

The feature can be enabled when setting searchResultDrawer to true in the SearchConfig of the gis-client-config.js.

When set to true the search result wil be displayed in a drawer on the right side.

It contains the "title" property of the selected feature of the SearchResultList.

When the passed feature has other properties then title a PropertyGrid with its features is shown.

TODO:

  • Adapt useSolrSearchEngine to add all properties of the selected item to the created ol feature
  • Adapt useWfsSearchEngine to add all properties of the selected item to the created ol feature
  • Make PropertyGrid configurable
    • attributesFilter (maybe reusable from layer config)
    • Check if we want a more versatile configuration here

Preview

shogun-client-search-result-drawer

Copy link

Title Lines Statements Branches Functions
All Coverage: 54%
55.2% (3018/5467) 23.65% (767/3242) 42.25% (333/788)
only changed Coverage: 51%
51.88% (289/557) 8.95% (35/391) 31.95% (31/97)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant