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

feat(google-maps): Add map instance getter - getRawGoogleMapInstance #1757

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

Conversation

ThomasWestrelin
Copy link

This PR adds a getRawGoogleMapInstance method that exposes the underlying google.maps.Map instance when on web platforms.

This is especially useful when one wants to access specific features that are only available in the Google Map JS SDK or that haven't been implemented by this plugin. This provides an escape hatch that allows users to access all JS SDK features when those are only needed on web platforms, the only current workaround would be conditionally using this plugin to instead use the raw JS SDK on web platforms.

Context

We are migrating an existing app to Capacitor and are using advanced features from the JS SDK that cannot be implemented with the current interface. We don't need those advanced features in the native version of our app se we are fine to have them work only on the web.

@ThomasWestrelin ThomasWestrelin changed the title getRawGoogleMapInstance @ThomasWestrelin feat(google-maps): Add map instance getter - getRawGoogleMapInstance Aug 24, 2023
@ThomasWestrelin ThomasWestrelin changed the title @ThomasWestrelin feat(google-maps): Add map instance getter - getRawGoogleMapInstance feat(google-maps): Add map instance getter - getRawGoogleMapInstance Aug 24, 2023
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.

None yet

1 participant