-
Notifications
You must be signed in to change notification settings - Fork 608
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
[@capacitor/google-maps] updateRender method in Android does not respect width and height changes #1557
Labels
Comments
AE1NS
changed the title
[@capacitor/google-maps] updateRender method in Android does not respect width and height
[@capacitor/google-maps] updateRender method in Android does not respect width and height changes
Apr 25, 2023
Replacing it with this, works:
But I dont know if it has any side effects. |
Or this:
|
Closed in favor of #1594 |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Plugin(s)
Capacitor Version
Platform(s)
Android
Current Behavior
When I update the map container dimensions (width, height, x, y) and call 'updateMapBounds', the native map just get repositioned but not resized.
Expected Behavior
The native map should also update its widht and height attributes.
Reproduction
updateMapBounds
on the plugin instance map object or alternatively callwindow.dispatchEvent(new CustomEvent('resize'))
Other Technical Details
Only the x and y values are updated on the map view in the implementation:
capacitor-plugins/google-maps/android/src/main/java/com/capacitorjs/plugins/googlemaps/CapacitorGoogleMap.kt
Lines 119 to 123 in c39d84f
The text was updated successfully, but these errors were encountered: