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
Map does not render on it's element correctly on Edge to Edge devices when edge to edge support is enabled. More importantly, touch events are not dispatched to the right locations on these devices.
On Android 15, a solution is required to handle edge to edge devices, otherwise the application overflows onto the status bars and looks broken. Currently the two solutions I have seen are 1. CapAwesome Edge-to-Edge
2. Setting a config option in capacitor.config.ts (adjustMarginsForEdgeToEdge: 'auto')
When using either of these options, the capacitor-google-maps plugin renders the map with an offset on the bottom. This causes styling issues, and touch effects are not dispatched to where they are expected.
maps-1.mov
Expected Behavior
Map should render without the margin on the bottom when edge to edge is enabled.
Users touches should be registered at the location the user touched instead of above.
See below (adjustMarginsForEdgeToEdge commented out)
Run the sample app - this will start with adjustMarginsForEdgeToEdge enabled. You can see the map working correctly by commenting this option out in capacitor.config.ts
Bug Report
Map does not render on it's element correctly on Edge to Edge devices when edge to edge support is enabled. More importantly, touch events are not dispatched to the right locations on these devices.
Plugin(s)
@capacitor/google-maps: "^7.0.3",
Capacitor Version
Platform(s)
Android only
Current Behavior
On Android 15, a solution is required to handle edge to edge devices, otherwise the application overflows onto the status bars and looks broken. Currently the two solutions I have seen are 1. CapAwesome Edge-to-Edge
2. Setting a config option in capacitor.config.ts (
adjustMarginsForEdgeToEdge: 'auto')When using either of these options, the capacitor-google-maps plugin renders the map with an offset on the bottom. This causes styling issues, and touch effects are not dispatched to where they are expected.
maps-1.mov
Expected Behavior
Map should render without the margin on the bottom when edge to edge is enabled.
Users touches should be registered at the location the user touched instead of above.
See below (adjustMarginsForEdgeToEdge commented out)
maps-2.mov
Code Reproduction
This was tested on a Pixel 9 Emulator
Other Technical Details
Additional Context