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

Use MapView.contentInset in Search component to better visualize results. #7

Open
mhdostal opened this issue Nov 30, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mhdostal
Copy link
Member

The search component will zoom to the extent of search results (after displaying the results as graphics in the MapView), but results will often be hidden by the search result list. Use the MapView.contentInset property to only display the results in the visible area of the MapView.

  • use the .contentInset modifier of MapView
  • only works with MapView; SceneView has no .contentInset modifier
  • pass a binding to the contentInset to the SearchView
  • the SearchView should set the contentInset, based on the area not covered by the result list and "repeat search here" button
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant