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

Refactor SearchInput component #11

Open
MaceM8 opened this issue Oct 4, 2021 · 0 comments
Open

Refactor SearchInput component #11

MaceM8 opened this issue Oct 4, 2021 · 0 comments

Comments

@MaceM8
Copy link
Collaborator

MaceM8 commented Oct 4, 2021

SearchInput now works on its own - there is no possibility to make it behave differently.
Goal of this task it to split implementation to smaller blocks and enable users to use only part of the solution.

  • Export useSuggest hook in hooks folder

  • Enable support for returning suggest results (so we can implement our own select with results)

  • Add config object that enables to set bounds of suggest and category of results

  • Export useGeolocation hook in hooks folder

  • Create useReverseGeolocation hook consuming coordinates and returning list of values, based on passed config. Config should define limit of results and preferrably distance if API permits

  • Hooks should have be able to return results without changing map (setting map center)

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

No branches or pull requests

1 participant