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

google-maps plugin - remove "webview must be transparent" requirement for the map to display on Android #6068

Open
jimbarrett33 opened this issue Nov 11, 2022 · 2 comments

Comments

@jimbarrett33
Copy link

Feature Request

The requirement of google-maps on Android to make the webview transparent "all the way through" is too restrictive and makes it nearly impossible to embed a map view in an Ionic "page" of complex apps, for which viewing and manipulating maps is not the primary feature of the app.

Unless I'm missing something, it means an app must do some complex logic of toggling transparency of webview (on the html or body element and ion-content) and possibly hiding and showing of other content when navigating to and from a page that has maps in it. I'm sure there is a technical reason for this but it makes using the plugin so difficult that I'm wondering what use cases exist for which this is actually a viable implementation. If I'm missing something, I would appreciate any suggestions.

Please consider this a feature request to track the progress of "We are investigating alternate methods for Android still and hope to resolve this better in a future update."

To leave on a positive note, thanks, you have many great plugins! (Just having a little difficulty with this one.)

Platform(s)

Android, but not breaking a simple solution for iOS and Web.

Preferred Solution

Put the <capacitor-google-map> tag anywhere in the html hierarchy and have it just work.

Alternatives

Provide an API that the result of the map is an image (PNG) and if the user wants more map functionality, let the user open the maps app on their phone. Won't most users want to do this anyway?

@ionitron-bot ionitron-bot bot added the triage label Nov 11, 2022
@jimbarrett33 jimbarrett33 changed the title google-maps plugin - remove "webview must be transparent" for the map to display on Android google-maps plugin - remove "webview must be transparent" requirement for the map to display on Android Nov 11, 2022
@FrancescoPaiola
Copy link

Totally agree. I consider this plugin unusable. Can't find a viable alternative.

@brandonporcel
Copy link

agree with you my boy.
it's an odissey to make work google maps on android with this plugin

make ion content transparent doesn't work

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

No branches or pull requests

4 participants