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

Is there a way to hide the map control and only use the AutoComplete on the field? #98

Open
abishekrsrikaanth opened this issue Apr 25, 2024 · 4 comments

Comments

@abishekrsrikaanth
Copy link

I am trying to only have Autocomplete on the TextInput on the form and have the map control hidden. Is there a way to do this?

@duncan-chig
Copy link

hey @abishekrsrikaanth . just to understand: why would you want to hide map feature when its the core, primary feature? yes you can do anything but why go to lengths hiding that which ought not be hidden? happy coding.

@abishekrsrikaanth
Copy link
Author

well, I have a large form with a list of fields and I only want the user to enter the Address and offer the Autocomplete functionality on the Text field. I really don't have a need for the Map control, so just want to hide it and only have the Text Input with the AutoComplete enabled.

@abishekrsrikaanth
Copy link
Author

Additionally, I have noticed few console errors that I wanted to bring to your notice. I get this error when I use the Geocomplete control. I do have the Maps Javascript API enabled on my Google API Services and still get this error.
Can you please advice if there are any other Service that needs to be enabled?

CleanShot 2024-04-25 at 21 38 28
CleanShot 2024-04-25 at 21 40 04

@duncan-chig
Copy link

i see isee...

  1. some map functionalities need subscription.

  2. depending on choice of tools... iknow laravel filament you can make form field hidden e.g. Hidden::make('mycoordinates_field') but Map:: is a separate component in a custom package..: hacking may be option.. but must you ? but without full use case imay not be well equiped to advise.

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

2 participants