ionic-team / ionic-team/capacitor-google-maps
@google-maps Page scrolling on Android = dead alley
- Dominant language
- TypeScript
- Stars
- 32
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
## Bug Report
On Android the native google map positioning disturbs the scrolling experience, which supposedly is a known bug or 'side effect' of the current Android implementation.
→ [Video of the problem](https://www.loom.com/share/57e17f94246242f48465c8f1a85e8288)
→ [Discussion about the problem](https://github.com/capacitor-community/google-maps/issues/7#issuecomment-849511416)
## The real issue
Since I don't think the implementation will be changed in the near future, the most natural fix would be to use the JS implementation for Android users – but that raises the following issues:
#### 1. The Google Maps library is not fully (and correctly) implemented
- Using the plugin I would need specify that the JS version to be used on Android as a config parameter. I can't see that this is possible reading the plugin documentation.
- I should be able to pass the `disableDefaultUI: true` parameter to declutter the map UI and mimic the native experience.
- Many types are not implemented according to the [Google Maps types](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/c0c048e0e95db210b102e979ceb2c0f2c81cb8b0/types/google.maps/index.d.ts#L3732), causing unexpected errors and behaviours
#### 2. There's no straight-forward way to target only Android devices
Another alternative is simply to load a different component using the native JS library on Android platforms. But as far as I know, there's no straight forward (or native) way to differentiate between the different platforms.
## Recommended solutions
What's the recommended solutions on this topic? Even though this isn't a bug per say, I would argue it's an issue.
Thanks in advance
Contributor guide
Assessment
This issue has not been assessed yet.