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

@googlemaps/js-api-loader: Refactor to importLibrary method #22

Open
AE1NS opened this issue Jun 18, 2024 · 0 comments · May be fixed by #21
Open

@googlemaps/js-api-loader: Refactor to importLibrary method #22

AE1NS opened this issue Jun 18, 2024 · 0 comments · May be fixed by #21
Labels

Comments

@AE1NS
Copy link

AE1NS commented Jun 18, 2024

Feature Request

Plugin

@capacitor/google-maps

Description

Instead of the load method, the new importLibrary method should be used to import the google maps instance. This prevents interferences when the developer wants to use @googlemaps/js-api-loader in the main project with different libraries, i.e. to use the geometry API of google.

Platform(s)

Web

Preferred Solution

Instead of setting up the needed libraries in the constructor of the loader and calling the .load() method, its possible to leave the libraries in the loader empty and use the .importLibrary() method with the parameter maps. The result of the method will be the MapsLibrary.

Additional Context

ionic-team/capacitor#6576

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

Successfully merging a pull request may close this issue.

1 participant