You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
AE1NS
changed the title
[@capacitor/google-maps] Add ability for plugin to take already instanciated google maps api
[@capacitor/google-maps] @googlemaps/js-api-loader: Refactor to importLibrary method
Jul 4, 2023
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.
Feature Request
Plugin
@capacitor/google-maps: 5.0.0
Description
Instead of the
load
method, the newimportLibrary
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 parametermaps
. The result of the method will be the MapsLibrary.Additional Context
ionic-team/capacitor#6576
The text was updated successfully, but these errors were encountered: