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

Improvement: Allow setting Google Maps API key #5

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

Conversation

slimani-dev
Copy link

@slimani-dev slimani-dev commented Oct 26, 2024

This commit introduces a new option, apiKey, to the LocationPickr field and infolist.

  • This option allows developers to specify their Google Maps API key directly within the field configuration. this can be helpful when users need to use API keys dynamically, for example when the user are allowed to use there own API keys and for multi tenancy too.

This commit introduces the ability to set a custom Google Maps API key for the LocationPickr field and infolist component.

- Adds an `apiKey()` method to both the `LocationPickr` field and infolist component to set the API key.
- The API key can be set globally in the config file or individually for each component.
- No Updates to the JavaScript code.
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